File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 4545 GPG_KEY_ID : ${{ secrets.GPG_KEY_ID }}
4646 GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
4747 GPG_SECRET_KEYS_ENC : ${{ secrets.GPG_SECRET_KEYS_ENC }}
48- SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
49- SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
48+ SONATYPE_CENTRAL_USERNAME : ${{ secrets.SONATYPE_CENTRAL_USERNAME }}
49+ SONATYPE_CENTRAL_PASSWORD : ${{ secrets.SONATYPE_CENTRAL_PASSWORD }}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ version = '1.0.0-SNAPSHOT'
3232repositories {
3333 mavenCentral()
3434 maven {
35- url " https://oss. sonatype.org /content/repositories/snapshots"
35+ url " https://ossrh-staging-api.central. sonatype.com /content/repositories/snapshots"
3636 }
3737 mavenLocal()
3838}
@@ -56,8 +56,8 @@ sourceSets {
5656}
5757
5858nexusStaging {
59- username = System . getenv(' SONATYPE_USERNAME ' )
60- password = System . getenv(' SONATYPE_PASSWORD ' )
59+ username = System . getenv(' SONATYPE_CENTRAL_USERNAME ' )
60+ password = System . getenv(' SONATYPE_CENTRAL_PASSWORD ' )
6161}
6262
6363
@@ -234,12 +234,12 @@ publishing {
234234
235235 repositories {
236236 maven {
237- def releasesRepoUrl = " https://oss. sonatype.org /service/local/staging/deploy/maven2/"
238- def snapshotsRepoUrl = " https://oss .sonatype.org/content/repositories/ snapshots/"
237+ def releasesRepoUrl = " https://ossrh-staging-api.central. sonatype.com /service/local/staging/deploy/maven2/"
238+ def snapshotsRepoUrl = " https://central .sonatype.com/repository/maven- snapshots/"
239239 url = version. endsWith(' SNAPSHOT' ) ? snapshotsRepoUrl : releasesRepoUrl
240240 credentials {
241- username System . getenv(' SONATYPE_USERNAME ' )
242- password System . getenv(' SONATYPE_PASSWORD ' )
241+ username System . getenv(' SONATYPE_CENTRAL_USERNAME ' )
242+ password System . getenv(' SONATYPE_CENTRAL_PASSWORD ' )
243243 }
244244 }
245245 }
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ echo "$GPG_SECRET_KEYS_ENC" | base64 --decode > "$GPG_KEY_LOCATION"
88export PROJECT_VERSION=" $( ./gradlew properties -q | grep " ^version: " | awk ' {print $2}' ) "
99echo " \$ PROJECT_VERSION: $PROJECT_VERSION " >&2
1010# Upload only snapshots to Sonatype OSS so it can make its way to Maven Central
11- # https://oss. sonatype.org /content/repositories/snapshots/io/tiledb/tiledb-cloud-java/
11+ # https://ossrh-staging-api.central. sonatype.com /content/repositories/snapshots/io/tiledb/tiledb-cloud-java/
1212./gradlew publishMavenJavaPublicationToMavenRepository
1313
1414# Only non-snapshot can be pushed as Maven releases
You can’t perform that action at this time.
0 commit comments