import plugins.configureDefaultPublishing import plugins.configureKotlinPomAttributes description = "Runtime library for the JS Plain Objects compiler plugin" plugins { kotlin("js") `maven-publish` } group = "org.jetbrains.kotlin" kotlin { js { browser() nodejs() compilations["main"].defaultSourceSet { dependencies { compileOnly(kotlin("stdlib-js")) } } } } val emptyJavadocJar by tasks.registering(Jar::class) { archiveClassifier.set("javadoc") } configureDefaultPublishing() publishing { publications { create("maven") { artifactId = "kotlin-js-plain-objects" from(components["kotlin"]) configureKotlinPomAttributes(project, "Annotations library for the JS Plain Objects compiler plugin", packaging = "klib") } withType { artifact(emptyJavadocJar) } } }