Skip to content

Commit

Permalink
ensure there is a release number
Browse files Browse the repository at this point in the history
  • Loading branch information
deanhiller committed Jul 14, 2016
1 parent 2aeaa30 commit d8a65d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ subprojects {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

if(project.hasProperty('projVersion')) {
if("".equals(project.projVersion.trim())) {
throw new InvalidUserDataException("-PprojVersion property was not defined and must be when uploadArchives is run");
}
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
Expand Down

0 comments on commit d8a65d1

Please sign in to comment.