diff --git a/libraries/scripting/dependencies-maven-all/build.gradle.kts b/libraries/scripting/dependencies-maven-all/build.gradle.kts index 0ecb543e253aa..0635ed2cd65e3 100644 --- a/libraries/scripting/dependencies-maven-all/build.gradle.kts +++ b/libraries/scripting/dependencies-maven-all/build.gradle.kts @@ -42,6 +42,11 @@ noDefaultJar() sourcesJar() javadocJar() +val mavenPackagesToRelocate = listOf( + "org.eclipse", + "org.codehaus" +) + val relocatedJar by task { configurations = listOf(embedded) duplicatesStrategy = DuplicatesStrategy.INCLUDE @@ -51,7 +56,7 @@ val relocatedJar by task { transform(ComponentsXmlResourceTransformerPatched()) if (kotlinBuildProperties.relocation) { - packagesToRelocate.forEach { + (packagesToRelocate + mavenPackagesToRelocate).forEach { relocate(it, "$kotlinEmbeddableRootPackage.$it") } } diff --git a/libraries/scripting/dependencies-maven/src/kotlin/script/experimental/dependencies/maven/impl/aether.kt b/libraries/scripting/dependencies-maven/src/kotlin/script/experimental/dependencies/maven/impl/aether.kt index b866c627588fc..268bd7846494c 100644 --- a/libraries/scripting/dependencies-maven/src/kotlin/script/experimental/dependencies/maven/impl/aether.kt +++ b/libraries/scripting/dependencies-maven/src/kotlin/script/experimental/dependencies/maven/impl/aether.kt @@ -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()