Skip to content

Commit

Permalink
Mark packages for relocation to fix classpath interferring in main-kts
Browse files Browse the repository at this point in the history
^KT-49476 fixed

(cherry picked from commit 56d4724)
  • Loading branch information
ileasile committed Nov 10, 2021
1 parent 63044b1 commit d5275aa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libraries/scripting/dependencies-maven-all/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -51,7 +56,7 @@ val relocatedJar by task<ShadowJar> {
transform(ComponentsXmlResourceTransformerPatched())

if (kotlinBuildProperties.relocation) {
packagesToRelocate.forEach {
(packagesToRelocate + mavenPackagesToRelocate).forEach {
relocate(it, "$kotlinEmbeddableRootPackage.$it")
}
}
Expand Down

0 comments on commit d5275aa

Please sign in to comment.