From cbeadba15d2fe458ece167d7ce7f0760db4b3432 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Wed, 27 Jan 2021 06:05:07 +0300 Subject: [PATCH] Disable metadata publishing for legacy common artifacts When they are used explicitly in common source sets, they cannot be resolved in platform ones after that since they only have common kotlin-api variants in their metadata. KT-40225 --- libraries/kotlin.test/build.gradle.kts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/kotlin.test/build.gradle.kts b/libraries/kotlin.test/build.gradle.kts index 7bcc959afff..a78fdf6588b 100644 --- a/libraries/kotlin.test/build.gradle.kts +++ b/libraries/kotlin.test/build.gradle.kts @@ -306,3 +306,7 @@ publishing { } } } + +tasks.withType { + enabled = "common" !in (publication.get() as MavenPublication).artifactId +} \ No newline at end of file