Skip to content

Commit

Permalink
fix publication
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg committed Oct 22, 2020
1 parent 5c58df9 commit 22e4799
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,10 @@ if (bintrayUser != null && bintrayKey != null) {

//workaround for https://github.com/bintray/gradle-bintray-plugin/issues/229
tasks.withType<BintrayUploadTask> {
dependsOn("publishToMavenLocal")
val names = publicationNames
names.forEach { dependsOn("publish${it.capitalize()}PublicationToMavenLocal") }
doFirst {
val publishing: PublishingExtension by extensions
val names = publicationNames
val publishing: PublishingExtension by project.extensions
publishing.publications
.filterIsInstance<MavenPublication>()
.filter { it.name in names }
Expand Down

0 comments on commit 22e4799

Please sign in to comment.