08e3cb300a
^KT-61117 fixed
48 lines
974 B
Kotlin
48 lines
974 B
Kotlin
import plugins.configureDefaultPublishing
|
|
import plugins.configureKotlinPomAttributes
|
|
|
|
description = "Runtime library for the Atomicfu compiler plugin"
|
|
|
|
plugins {
|
|
kotlin("js")
|
|
`maven-publish`
|
|
}
|
|
|
|
group = "org.jetbrains.kotlin"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
kotlin {
|
|
js() {
|
|
browser()
|
|
nodejs()
|
|
}
|
|
|
|
sourceSets {
|
|
js().compilations["main"].defaultSourceSet {
|
|
dependencies {
|
|
compileOnly(kotlin("stdlib-js"))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
val emptyJavadocJar by tasks.creating(Jar::class) {
|
|
archiveClassifier.set("javadoc")
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
create<MavenPublication>("maven") {
|
|
from(components["kotlin"])
|
|
configureKotlinPomAttributes(project, "Runtime library for the Atomicfu compiler plugin", packaging = "klib")
|
|
}
|
|
withType<MavenPublication> {
|
|
artifact(emptyJavadocJar)
|
|
}
|
|
}
|
|
}
|
|
|
|
configureDefaultPublishing() |