43 lines
816 B
Kotlin
43 lines
816 B
Kotlin
import plugins.signLibraryPublication
|
|
|
|
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"))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
configureCommonPublicationSettingsForGradle(signLibraryPublication)
|
|
|
|
publishing {
|
|
publications {
|
|
create<MavenPublication>("maven") {
|
|
from(components["kotlin"])
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinJsCompile> {
|
|
kotlinOptions.freeCompilerArgs += "-Xforce-deprecated-legacy-compiler-usage"
|
|
} |