From 3f705be0da2f1682beead2515dbd07aa07f878e0 Mon Sep 17 00:00:00 2001 From: "Doroszlai, Attila" Date: Sat, 29 Jun 2024 07:13:26 +0200 Subject: [PATCH] RATIS-2121. Set javac --release when compiling with JDK 9+ --- pom.xml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 60ffa14fc7..0951e189f7 100644 --- a/pom.xml +++ b/pom.xml @@ -204,7 +204,7 @@ bash - 1.8 + 8 ${javac.version} 3.3.9 @@ -522,6 +522,7 @@ org.apache.maven.plugins maven-enforcer-plugin + 3.2.1 @@ -574,8 +575,6 @@ org.apache.maven.plugins maven-compiler-plugin - ${javac.version} - ${javac.version} true 512m 2048m @@ -874,6 +873,25 @@ + + java8 + + [,8] + + + ${javac.version} + ${javac.version} + + + + java9-or-later + + [9,] + + + ${javac.version} + + experiments-build