Files
2023-11-29 11:21:56 +00:00

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()