diff --git a/build.gradle.kts b/build.gradle.kts index 1564edd5..40c7c029 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -162,4 +162,12 @@ subprojects { } } } + // configuration required to produce unique META-INF/*.kotlin_module file names + tasks.withType { + kotlinOptions { + if (project.hasProperty("POM_ARTIFACT_ID")) { + freeCompilerArgs = listOf("-module-name", project.property("POM_ARTIFACT_ID") as String) + } + } + } }