groovy-extensions/gradle/publish/sonatype.gradle

12 lines
348 B
Groovy
Raw Normal View History

2023-05-21 12:46:58 +02:00
if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) {
nexusPublishing {
repositories {
sonatype {
username = project.property('ossrhUsername')
password = project.property('ossrhPassword')
packageGroup = "org.xbib"
}
}
}
}