Skip to content

Commit

Permalink
Merge KT-MR-4942: Mark packages for relocation to fix classpath inter…
Browse files Browse the repository at this point in the history
…ferring in main-kts
  • Loading branch information
mshishkina authored and Space committed Nov 11, 2021
2 parents 0d1f362 + 583488e commit 99b69ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ internal class AetherResolveSession(
): Settings {
var main = result.effectiveSettings
val files = File(System.getProperty("user.dir"))
.parentFile.listFiles(
.parentFile?.listFiles(
NameFileFilter("interpolated-settings.xml") as FileFilter
)
val settingsFile = files?.singleOrNull()
Expand Down

0 comments on commit 99b69ae

Please sign in to comment.