Build: restore service files relocation for kotlin-reflect
This commit is contained in:
@@ -109,7 +109,6 @@ class KotlinModuleShadowTransformer(private val logger: Logger) : Transformer {
|
|||||||
|
|
||||||
val reflectShadowJar by task<ShadowJar> {
|
val reflectShadowJar by task<ShadowJar> {
|
||||||
archiveClassifier.set("shadow")
|
archiveClassifier.set("shadow")
|
||||||
duplicatesStrategy = DuplicatesStrategy.FAIL
|
|
||||||
configurations = listOf(embedded)
|
configurations = listOf(embedded)
|
||||||
|
|
||||||
callGroovy("manifestAttributes", manifest, project, "Main" /*true*/)
|
callGroovy("manifestAttributes", manifest, project, "Main" /*true*/)
|
||||||
@@ -117,6 +116,7 @@ val reflectShadowJar by task<ShadowJar> {
|
|||||||
exclude("**/*.proto")
|
exclude("**/*.proto")
|
||||||
|
|
||||||
if (kotlinBuildProperties.relocation) {
|
if (kotlinBuildProperties.relocation) {
|
||||||
|
mergeServiceFiles()
|
||||||
transform(KotlinModuleShadowTransformer(logger))
|
transform(KotlinModuleShadowTransformer(logger))
|
||||||
relocate("org.jetbrains.kotlin", "kotlin.reflect.jvm.internal.impl")
|
relocate("org.jetbrains.kotlin", "kotlin.reflect.jvm.internal.impl")
|
||||||
relocate("javax.inject", "kotlin.reflect.jvm.internal.impl.javax.inject")
|
relocate("javax.inject", "kotlin.reflect.jvm.internal.impl.javax.inject")
|
||||||
|
|||||||
Reference in New Issue
Block a user