Skip to content

Commit

Permalink
enabled release when the sonatype userame is available
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnlon committed Mar 21, 2017
1 parent 4d1785e commit 2ee2915
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ task wrapper(type: Wrapper) {

// TODO ....
// consider using the Gradle Nexus Staging Maven as this avoids need to use the NExus gui to close and release the stage artifact.
// use : ./gradlew -PENABLE_RELEASE uploadArchives
if (gradle.hasProperty("ENABLE_RELEASE")) {
// if the sonatypeUsername is provided by the gradle properties then a release is enabled

if (project.properties.containsKey("sonatypeUsername")) {
apply plugin: 'signing'

signing {
Expand Down

0 comments on commit 2ee2915

Please sign in to comment.