File tree Expand file tree Collapse file tree 3 files changed +5
-17
lines changed Expand file tree Collapse file tree 3 files changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ nexusPublishing {
30
30
stagingProfileId = sonatypeStagingProfileId
31
31
username = ossrhUsername
32
32
password = ossrhPassword
33
- nexusUrl. set(uri(" https://s01.oss .sonatype.org /service/local/" ))
34
- snapshotRepositoryUrl. set(uri(" https://s01.oss. sonatype.org/content/repositories/ snapshots/" ))
33
+ nexusUrl. set(uri(" https://ossrh-staging-api.central .sonatype.com /service/local/" ))
34
+ snapshotRepositoryUrl. set(uri(" https://central. sonatype.com/repository/maven- snapshots/" ))
35
35
}
36
36
}
37
37
}
Original file line number Diff line number Diff line change @@ -10,18 +10,6 @@ java {
10
10
}
11
11
12
12
publishing {
13
- repositories {
14
- maven {
15
- name = " sonatype"
16
- def releaseUrl = " https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
17
- def snapshotUrl = " https://s01.oss.sonatype.org/content/repositories/snapshots/"
18
- url = version. endsWith(' -SNAPSHOT' ) ? snapshotUrl : releaseUrl
19
- credentials {
20
- username = rootProject. ext[" ossrhUsername" ]
21
- password = rootProject. ext[" ossrhPassword" ]
22
- }
23
- }
24
- }
25
13
publications {
26
14
mavenJava(MavenPublication ) {
27
15
from components. java
Original file line number Diff line number Diff line change @@ -22,15 +22,15 @@ ext["signing.keyId"] = System.getenv('SIGNING_KEY_ID') ?: ext["signing.keyId"]
22
22
ext[" signing.password" ] = System . getenv(' SIGNING_PASSWORD' ) ?: ext[" signing.password" ]
23
23
ext[" signing.secretKeyRingFile" ] = System . getenv(' SIGNING_SECRET_KEY_RING_FILE' ) ?: ext[" signing.secretKeyRingFile" ]
24
24
25
- // Set up Sonatype repository
25
+ // Set up Sonatype repository using OSSRH Staging API
26
26
nexusPublishing {
27
27
repositories {
28
28
sonatype {
29
29
stagingProfileId = sonatypeStagingProfileId
30
30
username = ossrhUsername
31
31
password = ossrhPassword
32
- nexusUrl. set(uri(" https://s01.oss .sonatype.org /service/local/" ))
33
- snapshotRepositoryUrl. set(uri(" https://s01.oss. sonatype.org/content/repositories/ snapshots/" ))
32
+ nexusUrl. set(uri(" https://ossrh-staging-api.central .sonatype.com /service/local/" ))
33
+ snapshotRepositoryUrl. set(uri(" https://central. sonatype.com/repository/maven- snapshots/" ))
34
34
}
35
35
}
36
36
}
You can’t perform that action at this time.
0 commit comments