Skip to content

Commit

Permalink
Allow Bintray and plugins.gradle.org to be published separately
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrullmann committed Feb 11, 2018
1 parent ec36d7b commit f96740a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions publishing.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if (!gradle.startParameter.taskNames.contains('release')) {
if (!gradle.startParameter.taskNames.intersect(['release', 'releaseBintray'])) {
println "Not a release build, setting version to ${project.version}-SNAPSHOT"
project.version += '-SNAPSHOT'
}
Expand All @@ -10,6 +10,8 @@ tasks.create('release') {
}
}

tasks.create('releaseBintray')


project.plugins.withId('maven-publish') {

Expand Down Expand Up @@ -80,7 +82,8 @@ project.plugins.withId('com.jfrog.bintray') {
}
}

tasks['release'].dependsOn tasks.bintrayUpload
tasks.releaseBintray.dependsOn tasks.bintrayUpload
tasks.release.dependsOn tasks.releaseBintray
}


Expand All @@ -99,5 +102,5 @@ project.plugins.withId('com.gradle.plugin-publish') {
}
}

tasks['release'].dependsOn tasks.publishPlugins
tasks.release.dependsOn tasks.publishPlugins
}

0 comments on commit f96740a

Please sign in to comment.