Revert "Allow builds without OSSRH credentials"

This reverts commit 4275a870d54a58b3bfbcf39416355431afc1f4fb.
This commit is contained in:
Lanchon 2017-09-21 23:39:12 -03:00
parent 4275a870d5
commit 67a06dc84f

View File

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