Mark packages for relocation to fix classpath interferring in main-kts
KT-49476 fixed
This commit is contained in:
committed by
TeamCityServer
parent
83c94cc944
commit
56d472451c
@@ -42,6 +42,11 @@ noDefaultJar()
|
||||
sourcesJar()
|
||||
javadocJar()
|
||||
|
||||
val mavenPackagesToRelocate = listOf(
|
||||
"org.eclipse",
|
||||
"org.codehaus",
|
||||
)
|
||||
|
||||
val relocatedJar by task<ShadowJar> {
|
||||
configurations = listOf(embedded)
|
||||
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
||||
@@ -51,7 +56,7 @@ val relocatedJar by task<ShadowJar> {
|
||||
transform(ComponentsXmlResourceTransformerPatched())
|
||||
|
||||
if (kotlinBuildProperties.relocation) {
|
||||
packagesToRelocate.forEach {
|
||||
(packagesToRelocate + mavenPackagesToRelocate).forEach {
|
||||
relocate(it, "$kotlinEmbeddableRootPackage.$it")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user