[Gradle, JS] Fix pom.xml publication to OSS sonatype
This commit is contained in:
committed by
Space Team
parent
e33e1653f6
commit
332ce81408
@@ -1,4 +1,5 @@
|
|||||||
import plugins.configureDefaultPublishing
|
import plugins.configureDefaultPublishing
|
||||||
|
import plugins.configureKotlinPomAttributes
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
@@ -41,15 +42,16 @@ val emptyJavadocJar by tasks.creating(Jar::class) {
|
|||||||
archiveClassifier.set("javadoc")
|
archiveClassifier.set("javadoc")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configureDefaultPublishing()
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("maven") {
|
create<MavenPublication>("maven") {
|
||||||
from(components["kotlin"])
|
from(components["kotlin"])
|
||||||
|
configureKotlinPomAttributes(project, "Kotlin DOM API compatibility library")
|
||||||
}
|
}
|
||||||
withType<MavenPublication> {
|
withType<MavenPublication> {
|
||||||
artifact(emptyJavadocJar)
|
artifact(emptyJavadocJar)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
configureDefaultPublishing()
|
|
||||||
Reference in New Issue
Block a user