mirror of
https://github.com/fankes/moshi.git
synced 2025-10-18 23:49:21 +08:00
Update plugin mavenShadow to v8.1.1 (#1635)
* Update plugin mavenShadow to v8.1.1 * Update API --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Zac Sweers <pandanomic@gmail.com>
This commit is contained in:
@@ -13,7 +13,7 @@ dokka = { id = "org.jetbrains.dokka", version = "1.8.10" }
|
||||
japicmp = { id = "me.champeau.gradle.japicmp", version = "0.4.1" }
|
||||
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
|
||||
mavenPublish = { id = "com.vanniktech.maven.publish", version = "0.25.2" }
|
||||
mavenShadow = { id = "com.github.johnrengelman.shadow", version = "8.0.0" }
|
||||
mavenShadow = { id = "com.github.johnrengelman.shadow", version = "8.1.1" }
|
||||
spotless = { id = "com.diffplug.spotless", version = "6.18.0" }
|
||||
|
||||
[libraries]
|
||||
|
@@ -1,4 +1,3 @@
|
||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
|
||||
import com.github.jengelman.gradle.plugins.shadow.transformers.ServiceFileTransformer
|
||||
import com.vanniktech.maven.publish.JavadocJar.None
|
||||
import com.vanniktech.maven.publish.KotlinJvm
|
||||
@@ -84,13 +83,8 @@ dependencies {
|
||||
testImplementation(libs.kotlinCompileTesting)
|
||||
}
|
||||
|
||||
val relocateShadowJar = tasks.register<ConfigureShadowRelocation>("relocateShadowJar") {
|
||||
target = tasks.shadowJar.get()
|
||||
}
|
||||
|
||||
val shadowJar = tasks.shadowJar.apply {
|
||||
configure {
|
||||
dependsOn(relocateShadowJar)
|
||||
archiveClassifier.set("")
|
||||
configurations = listOf(shade)
|
||||
relocate("com.squareup.kotlinpoet.metadata", "com.squareup.moshi.kotlinpoet.metadata")
|
||||
|
Reference in New Issue
Block a user