Fix kotlinx-atomicfu-runtime sonatype publication

^KT-56400
This commit is contained in:
Bogdan Mukvich
2023-05-12 13:17:29 +02:00
committed by Space Team
parent 1d974b1ef7
commit 3de59e3f17
@@ -1,4 +1,5 @@
import plugins.signLibraryPublication import plugins.configureDefaultPublishing
import plugins.configureKotlinPomAttributes
description = "Runtime library for the Atomicfu compiler plugin" description = "Runtime library for the Atomicfu compiler plugin"
@@ -28,16 +29,24 @@ kotlin {
} }
} }
configureCommonPublicationSettingsForGradle(signLibraryPublication) val emptyJavadocJar by tasks.creating(Jar::class) {
archiveClassifier.set("javadoc")
}
publishing { publishing {
publications { publications {
create<MavenPublication>("maven") { create<MavenPublication>("maven") {
from(components["kotlin"]) from(components["kotlin"])
configureKotlinPomAttributes(project, "Runtime library for the Atomicfu compiler plugin", packaging = "klib")
}
withType<MavenPublication> {
artifact(emptyJavadocJar)
} }
} }
} }
configureDefaultPublishing()
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinJsCompile> { tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinJsCompile> {
kotlinOptions.freeCompilerArgs += "-Xforce-deprecated-legacy-compiler-usage" kotlinOptions.freeCompilerArgs += "-Xforce-deprecated-legacy-compiler-usage"
} }