From 7126d68f312e64050f1c95feeca4cf28c2f0d3ad Mon Sep 17 00:00:00 2001 From: Dominic Schabel Date: Wed, 23 May 2018 11:15:22 +0200 Subject: [PATCH] Support for building HawkBit with JDK 9+ (#682) * Freeze compiler for JDK 8 so we're able to support JDK 9 + 10 Signed-off-by: Dominic Schabel * Fix for new Java 10 class file versions --- pom.xml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index a20ce5df8..ac9b7969e 100644 --- a/pom.xml +++ b/pom.xml @@ -195,7 +195,7 @@ https://circleci.com/gh/eclipse/hawkbit **/target/generated-sources/apt/**,**/src/test/**,**/src/main/java/org/eclipse/hawkbit/repository/test/** **/src/main/java/org/eclipse/hawkbit/ui/**,**/target/generated-sources/apt/**,**/src/main/java/org/eclipse/hawkbit/repository/test/**,**/examples/** - 0.7.9 + 0.8.1 ${project.basedir}/../target/ ${jacoco.outputDir}/jacoco-ut.exec ${jacoco.outputDir}/jacoco-it.exec @@ -213,6 +213,7 @@ org.apache.maven.plugins maven-compiler-plugin + ${maven.compiler.plugin.version} -Xlint:all true @@ -385,7 +386,7 @@ true ${surefire.forkcount} - ${jacoco.agent.ut.arg} + ${jacoco.agent.ut.arg} --illegal-access=warn --add-modules=java.xml.bind @@ -450,22 +451,19 @@ - java-9 + jdk-8 - 9 - + 1.8 + - maven-compiler-plugin - ${maven.compiler.plugin.version} - - + org.apache.maven.plugins maven-surefire-plugin - --illegal-access=warn --add-modules=java.xml.bind + ${jacoco.agent.ut.arg}