From 9a9c2bcbf8996adc6164323213334c188d7d23ff Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Sun, 16 Jun 2024 22:32:53 +0200 Subject: [PATCH] (Re)set minimal Java version to (again) be 8 instead of 11 (fixes #142) --- .github/workflows/maven.yml | 4 ++++ pom.xml | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index c9098f4..e830dc0 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -9,6 +9,10 @@ jobs: runs-on: ubuntu-latest strategy: matrix: + # Nota Bene: Even though the project (currently) targets Java 8 API level, + # we cannot build it under Java 8 anymore, because Error Prone (which we use) + # must be run on JDK 11 or newer (but we can and are still using + # source/target/release 8 instead 11 in the pom.xml). java: [ '11', '17', '21' ] name: Java ${{ matrix.Java }} CI steps: diff --git a/pom.xml b/pom.xml index 689881a..537593b 100644 --- a/pom.xml +++ b/pom.xml @@ -57,11 +57,13 @@ 3.13.0 - 11 + 8 + 8 + 8 true -Werror - -Xlint:all + -Xlint:all,-options -XDcompilePolicy=simple -Xplugin:ErrorProne -XepAllDisabledChecksAsWarnings -Xep:BooleanParameter:OFF -Xep:AndroidJdkLibsChecker:OFF