File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import com.github.jengelman.gradle.plugins.shadow.ShadowJavaPlugin.Companion.shadowJar
2-
31plugins {
42 alias(libs.plugins.kotlin.jvm)
53 alias(libs.plugins.kotlin.dsl)
@@ -46,22 +44,21 @@ gradlePlugin {
4644 }
4745}
4846
47+ tasks.jar {
48+ enabled = false
49+ }
50+
4951tasks.shadowJar {
50- enableRelocation = true
52+ relocate(" org.jetbrains" , " jp.ntsk.room.schema.docs.plugin.relocated.org.jetbrains" )
53+ relocate(" kotlinx" , " jp.ntsk.room.schema.docs.plugin.relocated.kotlinx" )
5154 archiveClassifier.set(" " )
52- relocationPrefix = " jp.ntsk.room.schema.docs.plugin.relocated"
5355}
5456
5557dependencies {
5658 implementation(libs.kotlinx.serialization.json)
5759}
5860
5961publishing {
60- publications {
61- create<MavenPublication >(" shadow" ) {
62- artifact(tasks.named(" shadowJar" ).get())
63- }
64- }
6562 repositories {
6663 mavenLocal()
6764 }
You can’t perform that action at this time.
0 commit comments