From 157a444c7879a09302ce39e5f7d1be62f3946991 Mon Sep 17 00:00:00 2001 From: Nick Dimiduk Date: Wed, 22 Dec 2021 16:28:26 -0800 Subject: [PATCH] HBASE-25465 Use javac --release option for supporting cross version compilation Update our jdk11 build profile in the pom so that it uses the additional flag on javac, requires maven 3.6+. --- pom.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pom.xml b/pom.xml index f49c5cd85f7a..0eb5d019d303 100755 --- a/pom.xml +++ b/pom.xml @@ -1725,7 +1725,9 @@ yyyy-MM-dd'T'HH:mm ${maven.build.timestamp} + 1.8 + 8 3.0.4 ${compileSource} @@ -2718,6 +2720,7 @@ [1.11,) + ${releaseTarget} --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED ${hbase-surefire.argLine}