From 9c61a7d1a7bfe339c8bc48e1c6a5ee32bf777718 Mon Sep 17 00:00:00 2001 From: Stephan Schroevers Date: Thu, 27 Apr 2023 19:19:29 +0200 Subject: [PATCH] Try to fix some build issues --- .github/workflows/build-jdk11.yaml | 4 ++-- .github/workflows/sonarcloud.yml | 2 +- pom.xml | 19 ++++++++++--------- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-jdk11.yaml b/.github/workflows/build-jdk11.yaml index 956496fce9a..b9c58b4e7e8 100644 --- a/.github/workflows/build-jdk11.yaml +++ b/.github/workflows/build-jdk11.yaml @@ -27,8 +27,8 @@ jobs: cache: maven - name: Display build environment details run: mvn --version - - name: Build project against vanilla Error Prone, compile Javadoc - run: mvn -T1C install javadoc:jar -Dsurefire.jdk-toolchain-version=11.0.18 + - name: Build project against vanilla Error Prone + run: mvn -T1C install -Dsurefire.jdk-toolchain-version=11.0.18 - name: Build project with self-check against Error Prone fork run: mvn -T1C clean verify -Perror-prone-fork -Dsurefire.jdk-toolchain-version=11.0.18 -s settings.xml - name: Remove installed project artifacts diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 3966960a4b8..1f940e604e9 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -33,4 +33,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: mvn -T1C jacoco:prepare-agent verify jacoco:report sonar:sonar -Dverification.skip -Dsonar.projectKey=PicnicSupermarket_error-prone-support + run: mvn -T1C jacoco:prepare-agent verify jacoco:report sonar:sonar -Dversion.jdk.runtime=17 -Dverification.skip -Dsonar.projectKey=PicnicSupermarket_error-prone-support diff --git a/pom.xml b/pom.xml index 88abf30dfd3..8a351e3e5b8 100644 --- a/pom.xml +++ b/pom.xml @@ -207,7 +207,8 @@ 1.0.0 - 11 + 11 + 17 3.8.7 5.3.1 1.0.1 @@ -560,7 +561,7 @@ `provided`, but we'd rather not do that.) --> false false - ${version.jdk} + ${version.jdk.runtime} @@ -940,8 +941,8 @@ 10000 true - ${version.jdk} - ${version.jdk} + ${version.jdk.runtime} + ${version.jdk.runtime} false @@ -1006,7 +1007,7 @@ --> - ${version.jdk} + ${version.jdk.runtime} true @@ -1014,7 +1015,7 @@ src/main/resources/**/*.properties,src/test/resources/**/*.properties - ${version.jdk} + ${version.jdk.runtime} ${version.maven} @@ -1114,7 +1115,7 @@ the compilation phase; no need to recheck during Javadoc generation. --> none - ${version.jdk} + ${version.jdk.source} @@ -1317,7 +1318,7 @@ patterns in their `@BeforeTemplate` methods. --> tech.picnic.errorprone.refasterrules - ${version.jdk} + ${version.jdk.runtime} @@ -1942,7 +1943,7 @@ org.apache.maven.plugins maven-compiler-plugin - 17 + ${version.jdk.source}