Skip to content

Commit 91523fb

Browse files
[RelEng] Migrate publishing to new Maven Central Portal
1 parent 7cda035 commit 91523fb

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/actions/setup-java-for-deployment/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ runs:
1818
17
1919
distribution: 'temurin'
2020
cache: 'maven' # Cache Maven dependencies between workflow runs
21-
# Properties for deployment to OSSRH:
22-
server-id: ossrh
21+
# Properties for deployment to Maven Central Portal:
22+
server-id: sonatype-central-portal
2323
server-username: MAVEN_USERNAME
2424
server-password: MAVEN_PASSWORD
2525
# Properties for gpg signing:

.github/workflows/maven-build-master-and-publish-snapshot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This workflow will build a Java project with Maven and will publish snapshot versions to the OSSRH Snapshots repository
1+
# This workflow will build a Java project with Maven and will publish snapshot versions to the Central Portal Snapshots repository
22
# For more information see:
33
# https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-Apache-Maven
44
# https://docs.github.com/en/actions/publishing-packages/publishing-java-packages-with-maven
@@ -25,6 +25,6 @@ jobs:
2525
- run: mvn -f symja_android_library -B -U -e -P publish-to-maven-central,exact-target-jdk deploy
2626
# Deployment of all modules is deferred to the last module by nexus-staging-maven-plugin
2727
env:
28-
MAVEN_USERNAME: ${{ secrets.OSSRH_TOKEN_USERNAME }}
29-
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN_PASSWORD }}
28+
MAVEN_USERNAME: ${{ secrets.CENTRAL_PORTAL_TOKEN_USERNAME }}
29+
MAVEN_PASSWORD: ${{ secrets.CENTRAL_PORTAL_TOKEN_PASSWORD }}
3030
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

.github/workflows/maven-perform-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ jobs:
6464
- run: mvn -f symja_android_library -B release:perform -DlocalCheckout=true
6565
# Deployment of all modules is deferred to the last module by nexus-staging-maven-plugin
6666
env:
67-
MAVEN_USERNAME: ${{ secrets.OSSRH_TOKEN_USERNAME }}
68-
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN_PASSWORD }}
67+
MAVEN_USERNAME: ${{ secrets.CENTRAL_PORTAL_TOKEN_USERNAME }}
68+
MAVEN_PASSWORD: ${{ secrets.CENTRAL_PORTAL_TOKEN_PASSWORD }}
6969
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
7070

7171
- name: Publish release commits and tag to master

symja_android_library/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
7979
</repository>
8080
<snapshotRepository>
81-
<id>ossrh</id>
82-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
81+
<id>sonatype-central-portal</id>
82+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
8383
</snapshotRepository>
8484
</distributionManagement>
8585

0 commit comments

Comments
 (0)