Skip to content

Commit

Permalink
Release fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Krystian Panek committed Feb 1, 2021
1 parent 3e25574 commit 54a16f1
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions buildSrc/src/main/kotlin/bintray.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,4 @@ fun Project.bintrayOptions() {
publish = (project.findProperty("bintray.publish") ?: "true").toString().toBoolean()
override = (project.findProperty("bintray.override") ?: "false").toString().toBoolean()
}

tasks.withType(BintrayUploadTask::class.java).configureEach {
doFirst {
extensions.configure(PublishingExtension::class.java) {
publications.filterIsInstance<MavenPublication>()
.forEach { publication ->
val moduleFile = buildDir.resolve("publications/${publication.name}/module.json")
if (moduleFile.exists()) {
publication.artifact(object : FileBasedMavenArtifact(moduleFile) {
override fun getDefaultExtension() = "module"
})
}
}
}
}
}
}

0 comments on commit 54a16f1

Please sign in to comment.