diff --git a/kotlinx-coroutines-core/build.gradle b/kotlinx-coroutines-core/build.gradle index 6fedd7c016..d4b2b8974b 100644 --- a/kotlinx-coroutines-core/build.gradle +++ b/kotlinx-coroutines-core/build.gradle @@ -46,6 +46,14 @@ configurations { configureKotlinJvmPlatform(kotlinCompilerPluginClasspath) } +// Update module name for metadata artifact to avoid conflicts +// see https://github.com/Kotlin/kotlinx.coroutines/issues/1797 +compileKotlinMetadata { + kotlinOptions { + freeCompilerArgs += ["-module-name", "kotlinx-coroutines-core-common"] + } +} + kotlin.sourceSets { jvmTest.dependencies { api "org.jetbrains.kotlinx:lincheck:$lincheck_version"