1- name : Deploy to OSS
1+ name : Deploy to Maven Central
22
33env :
44 JAVA_VERSION : ' 17'
99 types : [ "released" ]
1010
1111jobs :
12-
13- # blackduck:
14- # name: "Blackduck Scan"
15- # runs-on: ubuntu-latest
16- # timeout-minutes: 15
17- # steps:
18- # - name: Checkout
19- # uses: actions/checkout@v4
20- # - name: "Scan With Black Duck"
21- # uses: ./.github/actions/scan-with-blackduck
22- # with:
23- # blackduck_token: ${{ secrets.BLACK_DUCK_TOKEN }}
24- # github_token: ${{ secrets.GITHUB_TOKEN }}
25- # maven-version: ${{ env.MAVEN_VERSION }}
12+ # blackduck:
13+ # name: Blackduck Scan
14+ # runs-on: ubuntu-latest
15+ # timeout-minutes: 15
16+ # steps:
17+ # - name: Checkout
18+ # uses: actions/checkout@v4
19+ # - name: Scan With Black Duck
20+ # uses: ./.github/actions/scan-with-blackduck
21+ # with:
22+ # blackduck_token: ${{ secrets.BLACK_DUCK_TOKEN }}
23+ # github_token: ${{ secrets.GITHUB_TOKEN }}
24+ # maven-version: ${{ env.MAVEN_VERSION }}
2625
2726 update-version :
27+ name : Update Version
2828 runs-on : ubuntu-latest
29- # needs: blackduck
3029 steps :
3130 - name : Checkout
3231 uses : actions/checkout@v4
33- # with:
34- # token: ${{ secrets.GH_TOKEN }}
35-
36- # - name: Update version
37- # uses: ./.github/actions/newrelease
38- # with:
39- # java-version: ${{ env.JAVA_VERSION }}
40- # maven-version: ${{ env.MAVEN_VERSION }}
41-
32+ with :
33+ token : ${{ secrets.GH_TOKEN }}
34+ - name : Update version
35+ uses : ./.github/actions/newrelease
36+ with :
37+ java-version : ${{ env.JAVA_VERSION }}
38+ maven-version : ${{ env.MAVEN_VERSION }}
4239 - name : Upload Changed Artifacts
4340 uses : actions/upload-artifact@v4
4441 with :
@@ -48,28 +45,27 @@ jobs:
4845 retention-days : 1
4946
5047 build :
48+ # name: Build and Sonar Scan
49+ name : Build
5150 runs-on : ubuntu-latest
5251 needs : update-version
5352 steps :
5453 - name : Download artifact
5554 uses : actions/download-artifact@v4
5655 with :
5756 name : root-new-version
58-
5957 - name : Build
6058 uses : ./.github/actions/build
6159 with :
6260 java-version : ${{ env.JAVA_VERSION }}
6361 maven-version : ${{ env.MAVEN_VERSION }}
64-
65- # - name: SonarQube Scan
62+ # - name: Sonar Scan
6663 # uses: ./.github/actions/scan-with-sonar
6764 # with:
6865 # java-version: ${{ env.JAVA_VERSION }}
6966 # maven-version: ${{ env.MAVEN_VERSION }}
7067 # sonarq-token: ${{ secrets.SONARQ_TOKEN }}
7168 # github-token: ${{ secrets.GITHUB_TOKEN }}
72-
7369 - name : Upload Changed Artifacts
7470 uses : actions/upload-artifact@v4
7571 with :
@@ -81,24 +77,22 @@ jobs:
8177 deploy :
8278 name : Deploy to Maven Central
8379 runs-on : ubuntu-latest
84- needs : build
80+ # needs: [blackduck, build]
81+ needs : [build]
8582 steps :
8683 - name : Download artifact
8784 uses : actions/download-artifact@v4
8885 with :
8986 name : root-build
90-
9187 - name : Deploy
9288 uses : ./.github/actions/deploy-release
9389 with :
94- user : ${{ secrets.OSSRH_SONATYPE_ORG_API_USER }}
95- password : ${{ secrets.OSSRH_SONATYPE_ORG_API_PASSWD }}
96- profile : ${{ secrets.OSSRH_SONATYPE_ORG_PROFILE_ID }}
90+ user : ${{ secrets.CENTRAL_REPOSITORY_USER }}
91+ password : ${{ secrets.CENTRAL_REPOSITORY_PASS }}
9792 pgp-pub-key : ${{ secrets.PGP_PUBKEY_ID }}
9893 pgp-private-key : ${{ secrets.PGP_PRIVATE_KEY }}
9994 pgp-passphrase : ${{ secrets.PGP_PASSPHRASE }}
10095 revision : ${{ github.event.release.tag_name }}
10196 maven-version : ${{ env.MAVEN_VERSION }}
102-
10397 - name : Echo Status
10498 run : echo "The job status is ${{ job.status }}"
0 commit comments