Update maven central URL

This commit is contained in:
Paul Schaub 2025-09-27 11:31:45 +02:00
parent 55d9312b26
commit 875d04dc15
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -60,8 +60,7 @@ allprojects {
isReleaseVersion = !isSnapshot
signingRequired = !(isSnapshot || isContinuousIntegrationEnvironment)
sonatypeCredentialsAvailable = project.hasProperty('sonatypeUsername') && project.hasProperty('sonatypePassword')
sonatypeSnapshotUrl = 'https://oss.sonatype.org/content/repositories/snapshots'
sonatypeStagingUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
sonatypeStagingUrl = 'https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/'
}
if (isSnapshot) {
@ -156,7 +155,7 @@ subprojects {
repositories {
if (sonatypeCredentialsAvailable) {
maven {
url isSnapshot ? sonatypeSnapshotUrl : sonatypeStagingUrl
url sonatypeStagingUrl
credentials {
username = sonatypeUsername
password = sonatypePassword