From f491d16534fc63daee5e803f07c33b5cd6fe7727 Mon Sep 17 00:00:00 2001 From: Jimmy Praet Date: Mon, 16 Feb 2026 18:58:03 +0100 Subject: [PATCH 1/5] Publish snapshots --- .github/workflows/maven-ci-build.yml | 8 +++++++- pom.xml | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven-ci-build.yml b/.github/workflows/maven-ci-build.yml index 9fa40617..7212c839 100644 --- a/.github/workflows/maven-ci-build.yml +++ b/.github/workflows/maven-ci-build.yml @@ -22,10 +22,16 @@ jobs: password: ${{ secrets.REDHAT_REGISTRY_TOKEN }} registry: registry.redhat.io - name: Build with Maven + run: | + VERSION=${{ github.event_name == 'pull_request' && format('pr{0}-SNAPSHOT', github.event.pull_request.number) || 'latest-SNAPSHOT' }} + mvn ${{ runner.debug && '-X -e' || '' }} -B deploy -Drevision=$VERSION -Psonar,release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: mvn ${{ runner.debug && '-X -e' || '' }} -B install -Psonar + MAVEN_GPG_KEY: ${{ secrets.OPENAPI_OSSRH_GPG_SECRET_KEY }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.OPENAPI_OSSRH_GPG_SECRET_KEY_PASSWORD }} + MAVEN_CENTRAL_USER: ${{ secrets.OPENAPI_OSSRH_USERNAME }} + MAVEN_CENTRAL_TOKEN: ${{ secrets.OPENAPI_OSSRH_TOKEN }} - name: Publish doc if: github.ref == 'refs/heads/main' uses: peaceiris/actions-gh-pages@v4 diff --git a/pom.xml b/pom.xml index 90c7d24d..80db3e3d 100644 --- a/pom.xml +++ b/pom.xml @@ -440,9 +440,11 @@ central belgif-rest-problem + jacoco-aggregator belgif-rest-problem-it From 767128cb1d667c468f822cbeddd1fb51b9585aa0 Mon Sep 17 00:00:00 2001 From: Jimmy Praet Date: Mon, 16 Feb 2026 19:20:02 +0100 Subject: [PATCH 2/5] Publish snapshots --- .github/workflows/maven-ci-build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/maven-ci-build.yml b/.github/workflows/maven-ci-build.yml index 7212c839..bda5c294 100644 --- a/.github/workflows/maven-ci-build.yml +++ b/.github/workflows/maven-ci-build.yml @@ -15,6 +15,9 @@ jobs: distribution: adopt java-version: '21' cache: maven + server-id: central + server-username: MAVEN_CENTRAL_USER + server-password: MAVEN_CENTRAL_TOKEN - name: Login to registry.redhat.io uses: docker/login-action@v3.7.0 with: From 1d49b6941964aa452427a0d715a3889133d74a24 Mon Sep 17 00:00:00 2001 From: Jimmy Praet Date: Mon, 16 Feb 2026 19:38:08 +0100 Subject: [PATCH 3/5] Publish snapshots --- pom.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/pom.xml b/pom.xml index 8b28098a..600e778d 100644 --- a/pom.xml +++ b/pom.xml @@ -440,11 +440,9 @@ central belgif-rest-problem - jacoco-aggregator belgif-rest-problem-it From 0bc609b6bea2088582ede25ab58daec2e62fb41c Mon Sep 17 00:00:00 2001 From: Jimmy Praet Date: Tue, 17 Feb 2026 12:06:50 +0100 Subject: [PATCH 4/5] Update README.md --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 899bc42d..7d26d997 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,24 @@ Documentation on how to use this library is available on https://belgif.github.i ## Build Process The build process is documented [here](https://github.com/belgif/rest-problem-java/blob/master/BUILDING.md). + +## Maven Central + +* Release artifacts are available on Maven Central (https://central.sonatype.com/namespace/io.github.belgif.rest.problem) +* Snapshot artifacts are also available (latest-SNAPSHOT for the main branch, pr-SNAPSHOT for PR branches): + +```xml + + + Central Portal Snapshots + central-portal-snapshots + https://central.sonatype.com/repository/maven-snapshots/ + + false + + + true + + + +``` From 60bb90190a0a919caf69c40732629f4533ee6a1a Mon Sep 17 00:00:00 2001 From: Jimmy Praet Date: Tue, 17 Feb 2026 13:00:42 +0100 Subject: [PATCH 5/5] Fix formatting for snapshot artifacts in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d26d997..9af54ea3 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ The build process is documented [here](https://github.com/belgif/rest-problem-ja ## Maven Central * Release artifacts are available on Maven Central (https://central.sonatype.com/namespace/io.github.belgif.rest.problem) -* Snapshot artifacts are also available (latest-SNAPSHOT for the main branch, pr-SNAPSHOT for PR branches): +* Snapshot artifacts are also available (`latest-SNAPSHOT` for the main branch, `pr-SNAPSHOT` for PR branches): ```xml