Setup publications with MPP Gradle metadata for kotlin-test library

Move publication configuration from individual platform specific
kotlin-test- modules to the root module.

KT-40225
This commit is contained in:
Ilya Gorbunov
2021-01-25 18:40:16 +03:00
parent 913c298be8
commit a16aaa3824
10 changed files with 297 additions and 32 deletions
+5 -1
View File
@@ -345,6 +345,7 @@ val coreLibProjects = listOfNotNull(
":kotlin-stdlib-js",
":kotlin-stdlib-jdk7",
":kotlin-stdlib-jdk8",
":kotlin-test",
":kotlin-test:kotlin-test-annotations-common",
":kotlin-test:kotlin-test-common",
":kotlin-test:kotlin-test-jvm",
@@ -637,7 +638,10 @@ tasks {
listOf("clean", "assemble", "install").forEach { taskName ->
register("coreLibs${taskName.capitalize()}") {
coreLibProjects.forEach { projectName -> dependsOn("$projectName:$taskName") }
for (projectName in coreLibProjects) {
if (projectName.startsWith(":kotlin-test:") && taskName == "install") continue
dependsOn("$projectName:$taskName")
}
}
}