From 21358da2ca0974a6478d64c5cbfd8b71ea024271 Mon Sep 17 00:00:00 2001 From: Augustin Husson Date: Thu, 21 May 2026 16:00:27 +0200 Subject: [PATCH 1/2] [ignore] fix publishing jar Signed-off-by: Augustin Husson --- .github/workflows/java.yml | 7 +++- java/pom.xml | 79 ++++++++++++++++++++++++++++++++++---- 2 files changed, 77 insertions(+), 9 deletions(-) diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index ee8e57c..c705a70 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -33,7 +33,6 @@ jobs: run: cd java && mvn test publish: runs-on: ubuntu-latest - if: ${{ github.event.release.tag_name }} steps: - name: Checkout code uses: actions/checkout@v6 @@ -47,8 +46,12 @@ jobs: server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD + - name: Dry-run publish package + if: ${{ !github.event.release.tag_name }} + run: cd java && mvn verify -Prelease - name: Publish package - run: cd java && mvn --batch-mode deploy + if: ${{ github.event.release.tag_name }} + run: cd java && mvn release:prepare release:perform env: MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} MAVEN_PASSWORD: ${{ secrets.MAVEN_TOKEN }} diff --git a/java/pom.xml b/java/pom.xml index 4ede7c6..d1f9001 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -44,18 +44,83 @@ - org.sonatype.central - central-publishing-maven-plugin - 0.10.0 - true + + org.apache.maven.plugins + maven-release-plugin + 3.1.1 - central - true - published + true + + + false + release + + + release + + + + org.sonatype.central + central-publishing-maven-plugin + 0.10.0 + true + + central + true + + + + + org.apache.maven.plugins + maven-source-plugin + 3.3.1 + + + attach-sources + + jar-no-fork + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.10.1 + + + attach-javadocs + + jar + + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.4 + + + sign-artifacts + verify + + sign + + + + + + + + com.fasterxml.jackson.core From 2459097a147be9b73af88c5e3dde571385d329d8 Mon Sep 17 00:00:00 2001 From: Augustin Husson Date: Thu, 21 May 2026 16:11:11 +0200 Subject: [PATCH 2/2] add developer Signed-off-by: Augustin Husson --- java/pom.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/java/pom.xml b/java/pom.xml index d1f9001..ba9e2a5 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -25,6 +25,14 @@ repo + + + ahusson + Augustin Husson + Perses + https://perses.dev + + 21