Fix for CI problem with missing mavenDeployer authentication.

This commit is contained in:
Erik C. Thauvin 2021-03-19 14:52:01 -07:00
parent 74dddbba69
commit 109e3894ab

View file

@ -157,7 +157,9 @@ publishing {
uploadArchives { uploadArchives {
repositories.mavenDeployer { repositories.mavenDeployer {
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) if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
} }
} }
} }