Skip to content

Commit

Permalink
* Change js to IR
Browse files Browse the repository at this point in the history
* Another workaround for
bintray/gradle-bintray-plugin#229
  • Loading branch information
oshai committed Sep 13, 2020
1 parent cea7e70 commit b00c2c7
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,21 @@ tasks {
}
}

tasks.withType<com.jfrog.bintray.gradle.tasks.BintrayUploadTask> {
doFirst {
publishing.publications
.filterIsInstance<MavenPublication>()
.forEach { publication ->
val moduleFile = buildDir.resolve("publications/${publication.name}/module.json")
if (moduleFile.exists()) {
publication.artifact(object : org.gradle.api.publish.maven.internal.artifact.FileBasedMavenArtifact(moduleFile) {
override fun getDefaultExtension() = "module"
})
}
}
}
}

kotlin {
metadata {
mavenPublication {
Expand All @@ -56,7 +71,7 @@ kotlin {
artifactId = rootProject.name
}
}
js(BOTH) {
js(IR) {
browser()
nodejs()
}
Expand Down

0 comments on commit b00c2c7

Please sign in to comment.