Skip to content

Commit

Permalink
Publish Gradle module file with bintrayUpload (close #255)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Boocock authored and paulboocock committed Jun 11, 2020
1 parent 8261bca commit 832b2d0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,18 @@ publishing {
}
}

// Workaround for upload of module.json file, remove when issue fixed https://github.com/bintray/gradle-bintray-plugin/issues/229
bintrayUpload.doFirst {
publishing.publications.all { publication ->
def moduleFile = file("$buildDir/publications/$publication.name/module.json")
if (moduleFile.exists()) {
artifact(moduleFile) {
extension = "module"
}
}
}
}

bintray {
user = System.getenv('BINTRAY_SNOWPLOW_MAVEN_USER')
key = System.getenv('BINTRAY_SNOWPLOW_MAVEN_API_KEY')
Expand Down

0 comments on commit 832b2d0

Please sign in to comment.