File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 3434 distribution : ' temurin'
3535 java-version : ${{ matrix.java_version }}
3636 cache : ' maven'
37- server-id : sonatype-nexus -snapshots
37+ server-id : central -snapshots
3838 server-username : CI_DEPLOY_USERNAME
3939 server-password : CI_DEPLOY_PASSWORD
4040 # See https://github.com/actions/setup-java/blob/v2/docs/advanced-usage.md#Publishing-using-Apache-Maven
@@ -44,11 +44,11 @@ jobs:
4444 run : ./mvnw -B -q -ff -ntp verify
4545 - name : Extract project Maven version
4646 id : projectVersion
47- run : echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.3.0 :evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT
47+ run : echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.5.1 :evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT
4848 - name : Deploy snapshot
49- if : github.event_name != 'pull_request' && matrix.java_version == '8' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT')
49+ if : ${{ github.event_name != 'pull_request' && matrix.java_version == '8' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
5050 env :
51- CI_DEPLOY_USERNAME : ${{ secrets.CI_DEPLOY_USERNAME }}
52- CI_DEPLOY_PASSWORD : ${{ secrets.CI_DEPLOY_PASSWORD }}
51+ CI_DEPLOY_USERNAME : ${{ secrets.CENTRAL_DEPLOY_USERNAME }}
52+ CI_DEPLOY_PASSWORD : ${{ secrets.CENTRAL_DEPLOY_PASSWORD }}
5353 # MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
5454 run : ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy
You can’t perform that action at this time.
0 commit comments