From f3c6783b1c5ff37f6058295b11c870dda7fbfdd2 Mon Sep 17 00:00:00 2001 From: Simon Schrottner Date: Thu, 27 Feb 2025 16:01:51 +0100 Subject: [PATCH] build: Ensure compatibility with newer Java versions Java changed the way how it processes annotations: ``` As of JDK 23, annotation processing is only run with some explicit configuration of annotation processing or with an explicit request to run annotation processing on the javac command line. ``` this messes with lombok, this compiler configuration will change the default behavior, so it works with java 23 Signed-off-by: Simon Schrottner --- .github/workflows/ci.yml | 2 +- .github/workflows/release-please.yml | 4 +- pom.xml | 71 ++++++++++++---------------- tools/junit-openfeature/pom.xml | 1 - 4 files changed, 34 insertions(+), 44 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 053f57899..4573afc67 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: matrix: os: [ubuntu-latest] build: - - java: 17 + - java: 21 profile: codequality - java: 8 profile: java8 diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 0be06320f..8a7af2fc7 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -19,11 +19,11 @@ jobs: if: ${{ steps.release.outputs.releases_created }} uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - name: Set up JDK 17 + - name: Set up JDK 21 if: ${{ steps.release.outputs.releases_created }} uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4 with: - java-version: '17' + java-version: '21' distribution: 'temurin' cache: maven server-id: ossrh diff --git a/pom.xml b/pom.xml index d502f2dfa..956caa4e4 100644 --- a/pom.xml +++ b/pom.xml @@ -49,13 +49,10 @@ - [17,) - 5.11.4 + [21,) UTF-8 UTF-8 ${groupId}.${artifactId} - 7.21.1 - 5.2.0 true @@ -65,9 +62,35 @@ false - 8 + 8 + + + + org.junit + junit-bom + 5.12.0 + pom + import + + + io.cucumber + cucumber-bom + 7.21.1 + pom + import + + + org.mockito + mockito-bom + 5.15.2 + pom + import + + + + @@ -101,27 +124,8 @@ org.mockito mockito-core - ${org.mockito.version} - test - - - - - - - net.bytebuddy - byte-buddy - 1.17.2 - test - - - - net.bytebuddy - byte-buddy-agent - 1.17.2 test - uk.org.lidalia @@ -140,35 +144,30 @@ org.junit.jupiter junit-jupiter - ${junit.jupiter.version} test org.junit.jupiter junit-jupiter-engine - ${junit.jupiter.version} test org.junit.jupiter junit-jupiter-api - ${junit.jupiter.version} test org.junit.jupiter junit-jupiter-params - ${junit.jupiter.version} test org.junit.platform junit-platform-suite - 1.11.4 test @@ -182,35 +181,24 @@ org.mockito mockito-junit-jupiter - 5.15.2 - test - - - - org.mockito - mockito-inline - ${org.mockito.version} test io.cucumber cucumber-java - ${io.cucumber.version} test io.cucumber cucumber-junit-platform-engine - ${io.cucumber.version} test io.cucumber cucumber-picocontainer - ${io.cucumber.version} test @@ -401,6 +389,9 @@ true + + full + diff --git a/tools/junit-openfeature/pom.xml b/tools/junit-openfeature/pom.xml index 79a253b1b..7e4757e19 100644 --- a/tools/junit-openfeature/pom.xml +++ b/tools/junit-openfeature/pom.xml @@ -35,7 +35,6 @@ org.junit.jupiter junit-jupiter-api - ${junit.jupiter.version}