From 4bfc1e3c53480856946739b47939747b5b4de5e7 Mon Sep 17 00:00:00 2001 From: Filip Hrisafov Date: Tue, 7 Jul 2026 21:37:33 +0200 Subject: [PATCH 1/3] Pin GitHub Actions to commit SHAs and add Dependabot - Pin actions/checkout, actions/setup-java and actions/upload-artifact to full commit SHAs (with version comments) - Add Dependabot config to keep the actions up to date weekly --- .github/dependabot.yml | 6 ++++++ .github/workflows/main.yml | 4 ++-- .github/workflows/release.yml | 6 +++--- 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5ace460 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fd46277..2539e4d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,9 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - name: 'Checkout' - uses: actions/checkout@v4 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - name: 'Set up JDK' - uses: actions/setup-java@v4 + uses: actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5.4.0 with: distribution: 'zulu' java-version: ${{ matrix.java }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 260865c..c7bb96b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,12 +37,12 @@ jobs: echo SONATYPE_TOKEN=$SONATYPE_TOKEN >> $GITHUB_ENV echo ::add-mask::$GPG_PASSPHRASE echo GPG_PASSPHRASE=$GPG_PASSPHRASE >> $GITHUB_ENV - - uses: actions/checkout@v4 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: fetch-depth: 0 - name: Setup Java - uses: actions/setup-java@v4 + uses: actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5.4.0 with: java-version: 17 distribution: 'zulu' @@ -87,7 +87,7 @@ jobs: - name: JReleaser output if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: jreleaser-release path: | From 09027f352118c1cc9890c0aaf8edda521d4a3370 Mon Sep 17 00:00:00 2001 From: Filip Hrisafov Date: Tue, 7 Jul 2026 21:37:33 +0200 Subject: [PATCH 2/3] Update Maven dependencies and plugins - Bump JReleaser, AssertJ, JUnit Jupiter, json-unit and Maven plugins - Mark assertj-core and json-unit as test-scoped - Migrate publishing from OSSRH nexus2 to Sonatype Central --- pom.xml | 62 +++++++++++++++++++++++++++++---------------------------- 1 file changed, 32 insertions(+), 30 deletions(-) diff --git a/pom.xml b/pom.xml index d229247..51919e8 100644 --- a/pom.xml +++ b/pom.xml @@ -22,12 +22,12 @@ ${git.commit.author.time} - 1.12.0 + 1.25.0 - 3.26.3 + 3.27.7 0.11 - 5.11.0 - 3.4.1 + 6.1.1 + 5.1.2 @@ -47,11 +47,13 @@ org.assertj assertj-core ${assertj.version} + test net.javacrumbs.json-unit json-unit ${json-unit.version} + test @@ -62,22 +64,22 @@ org.apache.maven.plugins maven-clean-plugin - 3.4.0 + 3.5.0 org.apache.maven.plugins maven-compiler-plugin - 3.13.0 + 3.15.0 org.apache.maven.plugins maven-dependency-plugin - 3.8.0 + 3.11.0 org.apache.maven.plugins maven-deploy-plugin - 3.1.3 + 3.1.4 true @@ -85,52 +87,52 @@ org.apache.maven.plugins maven-install-plugin - 3.1.3 + 3.1.4 org.apache.maven.plugins maven-jar-plugin - 3.4.2 + 3.5.0 org.apache.maven.plugins maven-javadoc-plugin - 3.10.0 + 3.12.0 org.apache.maven.plugins maven-resources-plugin - 3.3.1 + 3.5.0 org.apache.maven.plugins maven-source-plugin - 3.3.1 + 3.4.0 org.apache.maven.plugins maven-site-plugin - 3.20.0 + 3.22.0 org.apache.maven.plugins maven-surefire-plugin - 3.5.0 + 3.5.5 org.codehaus.mojo versions-maven-plugin - 2.17.1 + 2.21.0 org.jacoco jacoco-maven-plugin - 0.8.12 + 0.8.15 org.codehaus.mojo flatten-maven-plugin - 1.6.0 + 1.7.3 @@ -251,23 +253,23 @@ ALWAYS - true + + ALWAYS + true + false - - - ALWAYS - https://oss.sonatype.org/service/local - https://oss.sonatype.org/content/repositories/snapshots/ - true - true + + + RELEASE + https://central.sonatype.com/api/v1/publisher ${maven.multiModuleProjectDirectory}/target/staging-deploy - - + + @@ -314,12 +316,12 @@ sonatype-nexus-staging Nexus Release Repository - https://oss.sonatype.org/service/local/staging/deploy/maven2/ + https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/ sonatype-nexus-snapshots Sonatype Nexus Snapshots - https://oss.sonatype.org/content/repositories/snapshots/ + https://central.sonatype.com/repository/maven-snapshots/ From 73bdef8ba9988f672537cffd5f77617f3d74737e Mon Sep 17 00:00:00 2001 From: Filip Hrisafov Date: Tue, 7 Jul 2026 21:43:50 +0200 Subject: [PATCH 3/3] Add Java 25 to the test matrix --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2539e4d..7364e6a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,7 +10,7 @@ jobs: strategy: fail-fast: false matrix: - java: [17, 21] + java: [17, 21, 25] name: 'Linux JDK ${{ matrix.java }}' runs-on: ubuntu-latest steps: