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
This commit is contained in:
Ilya Gorbunov
2021-01-27 06:05:07 +03:00
parent 573aac7252
commit cbeadba15d

View File

@@ -306,3 +306,7 @@ publishing {
}
}
}
tasks.withType<GenerateModuleMetadata> {
enabled = "common" !in (publication.get() as MavenPublication).artifactId
}