From 428623538a8b486762b83b098328510a53db54fe Mon Sep 17 00:00:00 2001 From: Nihal Jain Date: Mon, 4 Mar 2024 21:34:47 +0530 Subject: [PATCH] HBASE-28381 Support building hbase-operator-tools with JDK17 (#141) Signed-off-by: Rajeshbabu Chintaguntla Signed-off-by: Peter Somogyi --- pom.xml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/pom.xml b/pom.xml index bff91ba5de..3e05590ee5 100644 --- a/pom.xml +++ b/pom.xml @@ -123,6 +123,7 @@ yyyy-MM-dd'T'HH:mm ${maven.build.timestamp} 1.8 + 8 ${compileSource} 3.3.3 2.27.2 @@ -141,6 +142,13 @@ 4.4.1 3.9.1.2184 + + + -Djava.security.manager=allow + + --add-opens java.base/java.lang=ALL-UNNAMED + --add-opens java.base/java.lang.reflect=ALL-UNNAMED + @@ -602,6 +610,41 @@ + + build-with-jdk8 + + 1.8 + + + ${compileSource} + ${compileSource} + + + + build-with-jdk11 + + [11,) + + + ${releaseTarget} + ${hbase-surefire.jdk11.flags} + ${hbase-surefire.argLine} + @{jacocoArgLine} + + + + build-with-jdk17 + + [17,) + + + ${hbase-surefire.jdk11.flags} + ${hbase-surefire.jdk17.flags} + ${hbase-surefire.argLine} + @{jacocoArgLine} + + + clover