Skip to content

Commit

Permalink
Fix bug where missing sonatypeUsername/Password variables cause build…
Browse files Browse the repository at this point in the history
… failures; close #221
  • Loading branch information
ndw committed Oct 23, 2015
1 parent f3bfdc9 commit 4a88d9d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ project.ext.refDocZip = 'xmlcalabash-ref-' + docsVersion + '.zip'
version = project.ext.distVersion // - gets turned into . in some contexts
group = "com.xmlcalabash"

if (!hasProperty("sonatypeUsername")) {
ext.sonatypeUsername=""
}

if (!hasProperty("sonatypePassword")) {
ext.sonatypePassword=""
}

def Properties versionProps = new Properties()
def versionPropsFile = file("src/main/resources/etc/version.properties")
versionProps['version'] = releaseVersion
Expand Down

0 comments on commit 4a88d9d

Please # to comment.