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