check for ossrhUsername in gradle build

This commit is contained in:
Jörg Prante 2021-05-24 22:53:50 +02:00
parent b04eec4f26
commit 83f9fd3745

View file

@ -53,12 +53,14 @@ if (project.hasProperty("signing.keyId")) {
}
}
nexusPublishing {
repositories {
sonatype {
username = project.property('ossrhUsername')
password = project.property('ossrhPassword')
packageGroup = "org.xbib"
if (project.hasProperty("ossrhUsername")) {
nexusPublishing {
repositories {
sonatype {
username = project.property('ossrhUsername')
password = project.property('ossrhPassword')
packageGroup = "org.xbib"
}
}
}
}