From 99b361597bd5e0657a1ae05c2946fc85f10cf622 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 19 Nov 2025 16:14:29 +0000 Subject: [PATCH 1/3] Bump com.diffplug.spotless:spotless-maven-plugin from 2.46.1 to 3.1.0 Bumps [com.diffplug.spotless:spotless-maven-plugin](https://github.com/diffplug/spotless) from 2.46.1 to 3.1.0. - [Release notes](https://github.com/diffplug/spotless/releases) - [Changelog](https://github.com/diffplug/spotless/blob/main/CHANGES.md) - [Commits](https://github.com/diffplug/spotless/compare/maven/2.46.1...lib/3.1.0) --- updated-dependencies: - dependency-name: com.diffplug.spotless:spotless-maven-plugin dependency-version: 3.1.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 79c1001..398501d 100644 --- a/pom.xml +++ b/pom.xml @@ -54,7 +54,7 @@ 5.14.1 1.6.1 2.20.1 - 2.46.1 + 3.1.0 From 524e92d69fa25a3025bbd40f510e46d91a366ec1 Mon Sep 17 00:00:00 2001 From: andreatp Date: Mon, 5 Jan 2026 12:37:59 +0000 Subject: [PATCH 2/3] spotless in a profile --- pom.xml | 110 ++++++++++++++++++++++++++++++-------------------------- 1 file changed, 60 insertions(+), 50 deletions(-) diff --git a/pom.xml b/pom.xml index 398501d..ffb59bb 100644 --- a/pom.xml +++ b/pom.xml @@ -120,60 +120,70 @@ - - com.diffplug.spotless - spotless-maven-plugin - ${spotless.version} - - - - - *.md - .gitignore - - - - - true - 2 - - - - - - **/src/main/java/**/*.java - **/src/test/java/**/*.java - - - 1.18.1 - - true - false - - - - - - - **/pom.xml - - - - - - - format - - check - - process-sources - - - + + java17 + + [17,) + + + + + com.diffplug.spotless + spotless-maven-plugin + ${spotless.version} + + + + + *.md + .gitignore + + + + + true + 2 + + + + + + **/src/main/java/**/*.java + **/src/test/java/**/*.java + + + 1.18.1 + + true + false + + + + + + + **/pom.xml + + + + + + + format + + check + + process-sources + + + + + + release From 244fb0d6d18d613456c8b6a77aa55f488b728732 Mon Sep 17 00:00:00 2001 From: andreatp Date: Tue, 6 Jan 2026 11:40:37 +0000 Subject: [PATCH 3/3] check formatting only on Java >= 17 --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 50aa4d4..9bb417b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,8 +64,12 @@ jobs: with: version: ${{ matrix.opa-version }} + - name: Check formatting + if: matrix.java-version >= 17 + run: mvn -B spotless:check + - name: Test opa-java-wasm - run: mvn -B spotless:apply clean install + run: mvn -B install - name: Publish Test Report uses: mikepenz/action-junit-report@v6