From cf2e899fa958f2dd4d8a7d40b93697cf1ff812e9 Mon Sep 17 00:00:00 2001 From: Roman Elizarov Date: Wed, 12 Feb 2020 16:38:26 +0300 Subject: [PATCH] Update module name for kotlinx-coroutines-core-common artifact Fixes #1797 --- kotlinx-coroutines-core/build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) 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"