KT-55700: fix kotlin-test-sources.jar in compiler lib

to contain both jvm and common parts
as it is made for maven artifacts distribution
This commit is contained in:
Yunir Salimzyanov
2023-02-13 17:42:27 +00:00
committed by Space Team
parent 607b8f6b61
commit 3cb0d489bf
2 changed files with 10 additions and 1 deletions
+8
View File
@@ -142,6 +142,14 @@ val combinedSourcesJar by tasks.registering(Jar::class) {
}
}
val combinedJvmSourcesJar by configurations.creating {
isCanBeConsumed = true
isCanBeResolved = false
}
artifacts {
add(combinedJvmSourcesJar.name, combinedSourcesJar)
}
val rootComponent = componentFactory.adhoc("root").apply {
addVariantsFromConfiguration(jvmApi) {