Skip to content

Commit

Permalink
HBASE-28381 Support building hbase-operator-tools with JDK17
Browse files Browse the repository at this point in the history
  • Loading branch information
NihalJain committed Feb 28, 2024
1 parent 557fd6e commit 9d9282a
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
<maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm</maven.build.timestamp.format>
<buildDate>${maven.build.timestamp}</buildDate>
<compileSource>1.8</compileSource>
<releaseTarget>8</releaseTarget>
<java.min.version>${compileSource}</java.min.version>
<maven.min.version>3.3.3</maven.min.version>
<spotless.version>2.27.2</spotless.version>
Expand All @@ -141,6 +142,13 @@
<!--code coverage properties-->
<clover-maven-plugin.version>4.4.1</clover-maven-plugin.version>
<sonar-maven-plugin.version>3.9.1.2184</sonar-maven-plugin.version>

<jacocoArgLine/>
<hbase-surefire.argLine>-Djava.security.manager=allow</hbase-surefire.argLine>
<!-- Currently, all of these options are known to be required by the test cases -->
<hbase-surefire.jdk11.flags>--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/java.lang.reflect=ALL-UNNAMED</hbase-surefire.jdk11.flags>
<hbase-surefire.jdk17.flags/>
</properties>
<dependencyManagement>
<dependencies>
Expand Down Expand Up @@ -602,6 +610,41 @@
</build>
</profile>

<profile>
<id>build-with-jdk8</id>
<activation>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>${compileSource}</maven.compiler.source>
<maven.compiler.target>${compileSource}</maven.compiler.target>
</properties>
</profile>
<profile>
<id>build-with-jdk11</id>
<activation>
<jdk>[11,)</jdk>
</activation>
<properties>
<maven.compiler.release>${releaseTarget}</maven.compiler.release>
<argLine>${hbase-surefire.jdk11.flags}
${hbase-surefire.argLine}
@{jacocoArgLine}</argLine>
</properties>
</profile>
<profile>
<id>build-with-jdk17</id>
<activation>
<jdk>[17,)</jdk>
</activation>
<properties>
<argLine>${hbase-surefire.jdk11.flags}
${hbase-surefire.jdk17.flags}
${hbase-surefire.argLine}
@{jacocoArgLine}</argLine>
</properties>
</profile>

<profile>
<id>clover</id>
<activation>
Expand Down

0 comments on commit 9d9282a

Please sign in to comment.