Skip to content

Commit

Permalink
use env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
joshjdevl committed Sep 4, 2017
1 parent 7895b17 commit e5bc6d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ uploadArchives {

repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
//authentication(userName: hasProperty('SONATYPE_USERNAME')?SONATYPE_USERNAME:'', password: hasProperty('SONATYPE_PASSWORD')?SONATYPE_PASSWORD:'')
authentication(userName: ossrhUsername, password: ossrhPassword)
authentication(userName: System.getenv('SONATYPE_USERNAME'), password: System.getenv('SONATYPE_PASSWORD'))
}

snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
Expand Down

0 comments on commit e5bc6d5

Please sign in to comment.