From 1ce3ca4d43e3dda199f12667b9ed87a771ba10b5 Mon Sep 17 00:00:00 2001 From: Francois Le Droff Date: Thu, 19 Feb 2026 14:49:38 +0100 Subject: [PATCH 1/2] GH-257 attempting a few upgrades --- .github/workflows/maven-release.yml | 6 +++--- .github/workflows/maven-snapshot.yml | 7 ++++--- pom.xml | 3 ++- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 95e1cbe6..e11f1d74 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -184,12 +184,12 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v6 with: ref: aio-lib-java-${{ needs.tag.outputs.version }} - name: Setup JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v5 with: distribution: 'temurin' java-version: 11 @@ -222,7 +222,7 @@ jobs: MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - name: Main Build - run: mvn clean deploy -DskipTests + run: mvn clean deploy -DskipTests -Prelease env: MAVEN_USERNAME: ${{ secrets.AIO_MAVEN_USER_NAME }} MAVEN_CENTRAL_TOKEN: ${{ secrets.AIO_MAVEN_TOKEN }} diff --git a/.github/workflows/maven-snapshot.yml b/.github/workflows/maven-snapshot.yml index cd051b7e..95478464 100644 --- a/.github/workflows/maven-snapshot.yml +++ b/.github/workflows/maven-snapshot.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v6 - name: Import GPG key env: @@ -23,11 +23,12 @@ jobs: echo $GPG_OWNERTRUST | base64 --decode | gpg --import-ownertrust --no-tty --batch --yes - name: Setup JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v5 with: distribution: 'temurin' java-version: 11 cache: maven + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_CENTRAL_TOKEN gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} @@ -48,7 +49,7 @@ jobs: MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - name: Main Build - run: mvn clean deploy -DskipTests + run: mvn clean deploy -DskipTests -Prelease env: MAVEN_USERNAME: ${{ secrets.AIO_MAVEN_USER_NAME }} MAVEN_CENTRAL_TOKEN: ${{ secrets.AIO_MAVEN_TOKEN }} diff --git a/pom.xml b/pom.xml index 3bead142..f265986e 100644 --- a/pom.xml +++ b/pom.xml @@ -455,7 +455,7 @@ org.apache.maven.plugins maven-gpg-plugin - 3.1.0 + 3.2.8 @@ -565,6 +565,7 @@ org.apache.maven.plugins maven-gpg-plugin + --pinentry-mode From 06dec7eb16ae0bf3f85150840d0ebe922c384d86 Mon Sep 17 00:00:00 2001 From: Francois Le Droff Date: Thu, 19 Feb 2026 14:59:51 +0100 Subject: [PATCH 2/2] GH-257 trying to add the passphrase pointer here as well ... --- .mvn/settings.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.mvn/settings.xml b/.mvn/settings.xml index 557c5c3b..ac66c75b 100644 --- a/.mvn/settings.xml +++ b/.mvn/settings.xml @@ -19,6 +19,18 @@ --> false + + + signing + + true + + + gpg + ${env.MAVEN_GPG_PASSPHRASE} + + + central