Refactoring: restore empty javadoc for all publications in kotlin-test
Partially revert 4dc45a4118
This commit is contained in:
committed by
TeamCityServer
parent
6a2c607862
commit
987cbd58e9
@@ -338,7 +338,6 @@ publishing {
|
|||||||
create("main", MavenPublication::class) {
|
create("main", MavenPublication::class) {
|
||||||
from(rootComponent)
|
from(rootComponent)
|
||||||
artifact(combinedSourcesJar)
|
artifact(combinedSourcesJar)
|
||||||
artifact(emptyJavadocJar)
|
|
||||||
// Remove all optional dependencies from the root pom
|
// Remove all optional dependencies from the root pom
|
||||||
pom.withXml {
|
pom.withXml {
|
||||||
val dependenciesNode = (asNode().get("dependencies") as NodeList).filterIsInstance<Node>().single()
|
val dependenciesNode = (asNode().get("dependencies") as NodeList).filterIsInstance<Node>().single()
|
||||||
@@ -355,7 +354,6 @@ publishing {
|
|||||||
artifactId = "kotlin-test-$framework"
|
artifactId = "kotlin-test-$framework"
|
||||||
from(components[framework])
|
from(components[framework])
|
||||||
artifact(tasks.getByPath(":kotlin-test:kotlin-test-$framework:sourcesJar") as Jar)
|
artifact(tasks.getByPath(":kotlin-test:kotlin-test-$framework:sourcesJar") as Jar)
|
||||||
artifact(emptyJavadocJar)
|
|
||||||
configureKotlinPomAttributes(project, "Kotlin Test Support for $framework")
|
configureKotlinPomAttributes(project, "Kotlin Test Support for $framework")
|
||||||
suppressAllPomMetadataWarnings()
|
suppressAllPomMetadataWarnings()
|
||||||
}
|
}
|
||||||
@@ -364,30 +362,29 @@ publishing {
|
|||||||
artifactId = "kotlin-test-js"
|
artifactId = "kotlin-test-js"
|
||||||
from(jsComponent)
|
from(jsComponent)
|
||||||
artifact(tasks.getByPath(":kotlin-test:kotlin-test-js:sourcesJar") as Jar)
|
artifact(tasks.getByPath(":kotlin-test:kotlin-test-js:sourcesJar") as Jar)
|
||||||
artifact(emptyJavadocJar)
|
|
||||||
configureKotlinPomAttributes(project, "Kotlin Test for JS")
|
configureKotlinPomAttributes(project, "Kotlin Test for JS")
|
||||||
}
|
}
|
||||||
create("wasm", MavenPublication::class) {
|
create("wasm", MavenPublication::class) {
|
||||||
artifactId = "kotlin-test-wasm"
|
artifactId = "kotlin-test-wasm"
|
||||||
from(wasmComponent)
|
from(wasmComponent)
|
||||||
artifact(tasks.getByPath(":kotlin-test:kotlin-test-wasm:sourcesJar") as Jar)
|
artifact(tasks.getByPath(":kotlin-test:kotlin-test-wasm:sourcesJar") as Jar)
|
||||||
artifact(emptyJavadocJar)
|
|
||||||
configureKotlinPomAttributes(project, "Kotlin Test for WASM", packaging = "klib")
|
configureKotlinPomAttributes(project, "Kotlin Test for WASM", packaging = "klib")
|
||||||
}
|
}
|
||||||
create("common", MavenPublication::class) {
|
create("common", MavenPublication::class) {
|
||||||
artifactId = "kotlin-test-common"
|
artifactId = "kotlin-test-common"
|
||||||
from(commonMetadataComponent)
|
from(commonMetadataComponent)
|
||||||
artifact(tasks.getByPath(":kotlin-test:kotlin-test-common:sourcesJar") as Jar)
|
artifact(tasks.getByPath(":kotlin-test:kotlin-test-common:sourcesJar") as Jar)
|
||||||
artifact(emptyJavadocJar)
|
|
||||||
configureKotlinPomAttributes(project, "Kotlin Test Common")
|
configureKotlinPomAttributes(project, "Kotlin Test Common")
|
||||||
}
|
}
|
||||||
create("annotationsCommon", MavenPublication::class) {
|
create("annotationsCommon", MavenPublication::class) {
|
||||||
artifactId = "kotlin-test-annotations-common"
|
artifactId = "kotlin-test-annotations-common"
|
||||||
from(annotationsMetadataComponent)
|
from(annotationsMetadataComponent)
|
||||||
artifact(tasks.getByPath(":kotlin-test:kotlin-test-annotations-common:sourcesJar") as Jar)
|
artifact(tasks.getByPath(":kotlin-test:kotlin-test-annotations-common:sourcesJar") as Jar)
|
||||||
artifact(emptyJavadocJar)
|
|
||||||
configureKotlinPomAttributes(project, "Kotlin Test Common")
|
configureKotlinPomAttributes(project, "Kotlin Test Common")
|
||||||
}
|
}
|
||||||
|
withType<MavenPublication> {
|
||||||
|
artifact(emptyJavadocJar)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user