Allow builds without OSSRH credentials

This commit is contained in:
Lanchon 2017-09-21 23:24:54 -03:00
parent 177350fbba
commit 4275a870d5

View File

@ -100,12 +100,14 @@ uploadArchives {
} }
} }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { if (project.hasProperty('ossrhUsername')) {
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/") { snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication userName: ossrhUsername, password: ossrhPassword authentication userName: ossrhUsername, password: ossrhPassword
}
} }
beforeDeployment { beforeDeployment {