Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

Commit

Permalink
Update .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
riaanjvos committed Jan 5, 2017
1 parent 015ae34 commit 0af6f58
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@ tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}

def _nexusUrl = hasProperty('nexusUrl') ? nexusUrl : System.getenv('nexusUrl')
def _nexusUsername = hasProperty('nexusUsername') ? nexusUsername : System.getenv('nexusUsername')
def _nexusPassword = hasProperty('nexusPassword') ? nexusPassword : System.getenv('nexusPassword')

repositories {

maven {
url nexusUrl + '/repository/maven-public/'
url _nexusUrl + '/repository/maven-public/'
credentials(PasswordCredentials) {
username nexusUsername
password nexusPassword
username _nexusUsername
password _nexusPassword
}
}
}
Expand Down

0 comments on commit 0af6f58

Please sign in to comment.