File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed
Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff 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]
2323def createRepositoriesTag = { repoUrls ->
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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')
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ ext.getExpectedPomFileContent = {
3939task checkUploadedArtifacts {
4040 doLast {
4141 def tngRepoId = project. findProperty(' tngRepoId' ) ?: rootProject. closeSonatypeStagingRepository. stagingRepositoryId. get()
42- def rootUrl = " https://oss. sonatype.org /service/local/repositories/${ tngRepoId} /content/com/tngtech/archunit"
42+ def rootUrl = " https://ossrh-staging-api.central. sonatype.com /service/local/repositories/${ tngRepoId} /content/com/tngtech/archunit"
4343
4444 def createArtifactUrl = { String artifactId ->
4545 " ${ rootUrl} /${ artifactId} /${ version} /${ artifactId} -${ version} "
You can’t perform that action at this time.
0 commit comments