Skip to content

Commit dddccdc

Browse files
committed
migrate from (meanwhile shut down) OSSRH to Central Publisher Portal
cf. https://central.sonatype.org/news/20250326_ossrh_sunset/ and https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/ As the snapshots repository is currently not used, its configuration is just a best guess at this point. Signed-off-by: Manfred Hanke <Manfred.Hanke@tngtech.com>
1 parent b72fcaf commit dddccdc

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

archunit-maven-test/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ def repositoryUrls = [
1616
releases : 'https://nexus.int.tngtech.com/repository/maven-releases'
1717
],
1818
sonatype: [
19-
snapshots: 'https://oss.sonatype.org/content/repositories/snapshots',
20-
releases : 'https://oss.sonatype.org/content/repositories/releases'
19+
snapshots: 'https://central.sonatype.com/repository/maven-snapshots',
20+
releases : 'https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/'
2121
]
2222
]
2323
def createRepositoriesTag = { repoUrls ->

build-steps/release/publish.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ nexusPublishing {
77
packageGroup = 'com.tngtech'
88
repositories {
99
sonatype {
10+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
11+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
1012
username = findProperty("sonatypeUsername")
1113
password = findProperty("sonatypePassword")
1214
}

build-steps/release/test-release.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ task testRelease() {
99
text = text.replace('mavenCentral()', '''
1010
mavenCentral()
1111
maven {
12-
url "https://oss.sonatype.org/content/repositories/staging/"
12+
url "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
1313
credentials {
1414
username project.getProperty('sonatypeUsername')
1515
password project.getProperty('sonatypePassword')

0 commit comments

Comments
 (0)