[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.configureKotlinPomAttributes
|
||||
|
||||
plugins {
|
||||
`maven-publish`
|
||||
@@ -41,15 +42,16 @@ val emptyJavadocJar by tasks.creating(Jar::class) {
|
||||
archiveClassifier.set("javadoc")
|
||||
}
|
||||
|
||||
configureDefaultPublishing()
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
create<MavenPublication>("maven") {
|
||||
from(components["kotlin"])
|
||||
configureKotlinPomAttributes(project, "Kotlin DOM API compatibility library")
|
||||
}
|
||||
withType<MavenPublication> {
|
||||
artifact(emptyJavadocJar)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
configureDefaultPublishing()
|
||||
Reference in New Issue
Block a user