Build: restore service files relocation for kotlin-reflect

This commit is contained in:
Vyacheslav Gerasimov
2019-06-27 19:44:53 +03:00
parent e8ac22e238
commit 4531d2a7b4
+1 -1
View File
@@ -109,7 +109,6 @@ class KotlinModuleShadowTransformer(private val logger: Logger) : Transformer {
val reflectShadowJar by task<ShadowJar> {
archiveClassifier.set("shadow")
duplicatesStrategy = DuplicatesStrategy.FAIL
configurations = listOf(embedded)
callGroovy("manifestAttributes", manifest, project, "Main" /*true*/)
@@ -117,6 +116,7 @@ val reflectShadowJar by task<ShadowJar> {
exclude("**/*.proto")
if (kotlinBuildProperties.relocation) {
mergeServiceFiles()
transform(KotlinModuleShadowTransformer(logger))
relocate("org.jetbrains.kotlin", "kotlin.reflect.jvm.internal.impl")
relocate("javax.inject", "kotlin.reflect.jvm.internal.impl.javax.inject")