File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -10,18 +10,7 @@ java {
10
10
}
11
11
12
12
publishing {
13
- repositories {
14
- maven {
15
- name = " sonatype"
16
- def releaseUrl = " https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
17
- def snapshotUrl = " https://central.sonatype.com/repository/maven-snapshots/"
18
- url = version. endsWith(' -SNAPSHOT' ) ? snapshotUrl : releaseUrl
19
- credentials {
20
- username = rootProject. ext[" ossrhUsername" ]
21
- password = rootProject. ext[" ossrhPassword" ]
22
- }
23
- }
24
- }
13
+ // Remove the repositories block - it's handled by nexus-publish-plugin in setup.gradle
25
14
publications {
26
15
mavenJava(MavenPublication ) {
27
16
from components. java
Original file line number Diff line number Diff line change 2
2
ext[" signing.keyId" ] = ' '
3
3
ext[" signing.password" ] = ' '
4
4
ext[" signing.secretKeyRingFile" ] = ' '
5
+ // NOTE: These should be Central Portal User Tokens, not OSSRH tokens
6
+ // Generate tokens at: https://central.sonatype.com/account
5
7
ext[" ossrhUsername" ] = ' '
6
8
ext[" ossrhPassword" ] = ' '
7
9
ext[" sonatypeStagingProfileId" ] = ' '
@@ -22,7 +24,7 @@ ext["signing.keyId"] = System.getenv('SIGNING_KEY_ID') ?: ext["signing.keyId"]
22
24
ext[" signing.password" ] = System . getenv(' SIGNING_PASSWORD' ) ?: ext[" signing.password" ]
23
25
ext[" signing.secretKeyRingFile" ] = System . getenv(' SIGNING_SECRET_KEY_RING_FILE' ) ?: ext[" signing.secretKeyRingFile" ]
24
26
25
- // Set up Sonatype repository
27
+ // Set up Sonatype repository using OSSRH Staging API
26
28
nexusPublishing {
27
29
repositories {
28
30
sonatype {
You can’t perform that action at this time.
0 commit comments