diff --git a/build.gradle b/build.gradle index 6cbe82e..3e53f45 100644 --- a/build.gradle +++ b/build.gradle @@ -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/") {