File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
actions/setup-java-for-deployment Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 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:
Original file line number Diff line number Diff line change 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
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 }}
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments