From 79199e4bad511eb53459aba3229de87081a782eb Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 8 Feb 2022 14:23:58 +1000 Subject: [PATCH] make java 11 as project base but keep javac release 8, we will be able to upgrade ecj and errorprone (#186) * make java 11 as project base but keep javac release flag to 8, we will be able to upgrade ecj and errorprone Signed-off-by: Olivier Lamy --- .github/workflows/maven.yml | 7 ++++--- pom.xml | 14 ++++++++++---- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 766e12cb..1111ccc4 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -27,10 +27,11 @@ jobs: build: name: Build it - uses: codehaus-plexus/.github/.github/workflows/maven.yml@v0.0.1 + uses: codehaus-plexus/.github/.github/workflows/maven.yml@master with: - jdk-matrix: '["8", "11", "17"]' - jdk-distribution-matrix: '["zulu", "temurin"]' + jdk-fast-fail-build: '11' + jdk-matrix: '["11", "17"]' + jdk-distribution-matrix: '["zulu", "temurin", "microsoft", "liberica"]' os-matrix: '["ubuntu-latest","windows-latest", "macOS-latest"]' maven_args: 'verify javadoc:javadoc -e -B -V -fae -Pno-tests-if-not-on-osx' diff --git a/pom.xml b/pom.xml index 0ef6d1e1..9cc2aa04 100644 --- a/pom.xml +++ b/pom.xml @@ -28,7 +28,6 @@ ${scm.url} ${scm.url} http://github.com/codehaus-plexus/plexus-compiler/tree/${project.scm.tag}/ - master github @@ -43,7 +42,7 @@ scm:git:git@github.com:codehaus-plexus/plexus-compiler.git - 8 + 11 true 2021-10-18T08:22:06Z 5.8.2 @@ -121,6 +120,13 @@ ${redirectTestOutputToFile} + + org.apache.maven.plugins + maven-compiler-plugin + + 8 + + org.apache.maven.plugins maven-release-plugin @@ -192,8 +198,8 @@ - [1.8,) - [ERROR] OLD JDK [${java.version}] in use. This projects requires JDK 8 or newer + [11,) + [ERROR] OLD JDK [${java.version}] in use. This projects requires JDK 11 or newer