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 {
1010}
1111
1212publishing {
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
2514 publications {
2615 mavenJava(MavenPublication ) {
2716 from components. java
Original file line number Diff line number Diff line change 22ext[" signing.keyId" ] = ' '
33ext[" signing.password" ] = ' '
44ext[" signing.secretKeyRingFile" ] = ' '
5+ // NOTE: These should be Central Portal User Tokens, not OSSRH tokens
6+ // Generate tokens at: https://central.sonatype.com/account
57ext[" ossrhUsername" ] = ' '
68ext[" ossrhPassword" ] = ' '
79ext[" sonatypeStagingProfileId" ] = ' '
@@ -22,7 +24,7 @@ ext["signing.keyId"] = System.getenv('SIGNING_KEY_ID') ?: ext["signing.keyId"]
2224ext[" signing.password" ] = System . getenv(' SIGNING_PASSWORD' ) ?: ext[" signing.password" ]
2325ext[" signing.secretKeyRingFile" ] = System . getenv(' SIGNING_SECRET_KEY_RING_FILE' ) ?: ext[" signing.secretKeyRingFile" ]
2426
25- // Set up Sonatype repository
27+ // Set up Sonatype repository using OSSRH Staging API
2628nexusPublishing {
2729 repositories {
2830 sonatype {
You can’t perform that action at this time.
0 commit comments