diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d40f213350..215bfabb9a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,11 +12,11 @@ jobs: build_and_test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 + - uses: actions/checkout@v6 + - name: Set up JDK 17 + uses: actions/setup-java@v5 with: - java-version: '11' + java-version: '17' distribution: 'temurin' - name: Build and validate project run: mvn -B package --file pom.xml \ No newline at end of file diff --git a/.github/workflows/release-pom.yml b/.github/workflows/release-pom.yml index 27f1240498..16740d7ff7 100644 --- a/.github/workflows/release-pom.yml +++ b/.github/workflows/release-pom.yml @@ -11,13 +11,13 @@ jobs: run: working-directory: modules steps: - - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 + - uses: actions/checkout@v6 + - name: Set up Maven Central Repository + uses: actions/setup-java@v5 with: - java-version: '11' + java-version: '17' distribution: 'temurin' - server-id: ossrh + server-id: central server-username: OSSRH_USER server-password: OSSRH_PASS gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} @@ -25,6 +25,6 @@ jobs: - name: Build and validate project run: mvn -B deploy -P release-pom --file pom.xml env: - OSSRH_USER: ${{ secrets.OSSRH_USER }} - OSSRH_PASS: ${{ secrets.OSSRH_PASS }} + OSSRH_USER: ${{ secrets.OSSRH_TOKEN_USER }} + OSSRH_PASS: ${{ secrets.OSSRH_TOKEN_PASSWD }} GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} \ No newline at end of file diff --git a/pom.xml b/pom.xml index afb8f2bf5d..da908d7e82 100644 --- a/pom.xml +++ b/pom.xml @@ -79,12 +79,12 @@ org.apache.maven.plugins maven-dependency-plugin - 3.2.0 + 3.6.1 org.apache.netbeans.utilities nbm-maven-plugin - 4.5 + 14.3 true @@ -95,7 +95,13 @@ org.apache.maven.plugins maven-scm-publish-plugin - 3.1.0 + 3.2.1 + + + org.sonatype.central + central-publishing-maven-plugin + 0.10.0 + true @@ -176,6 +182,23 @@ + + release-pom + + + + + org.sonatype.central + central-publishing-maven-plugin + true + + central + true + + + + + release