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