diff --git a/build.gradle b/build.gradle index af196fe..d98a28a 100644 --- a/build.gradle +++ b/build.gradle @@ -100,14 +100,12 @@ uploadArchives { } } - if (project.hasProperty('ossrhUsername')) { - repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { - authentication userName: ossrhUsername, password: ossrhPassword - } + repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { + authentication userName: ossrhUsername, password: ossrhPassword + } - snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") { - authentication userName: ossrhUsername, password: ossrhPassword - } + snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") { + authentication userName: ossrhUsername, password: ossrhPassword } beforeDeployment {