Skip to content

Commit

Permalink
[MNG-8061] Maven: Require Java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarwell committed Dec 30, 2024
1 parent 8f02871 commit 457ab8e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
7 changes: 2 additions & 5 deletions maven-extensions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,7 @@ under the License.
<profile>
<id>run-its</id>
<properties>
<!-- when testing with JDK9, change these values to 1.6 from cmdline -->
<invoker.maven.compiler.source>${maven.compiler.source}</invoker.maven.compiler.source>
<invoker.maven.compiler.target>${maven.compiler.target}</invoker.maven.compiler.target>
<invoker.maven.compiler.release>${maven.compiler.release}</invoker.maven.compiler.release>
</properties>
<build>
<plugins>
Expand All @@ -150,8 +148,7 @@ under the License.
<pomInclude>*/pom.xml</pomInclude>
</pomIncludes>
<properties>
<maven.compiler.source>${invoker.maven.compiler.source}</maven.compiler.source>
<maven.compiler.target>${invoker.maven.compiler.target}</maven.compiler.target>
<maven.compiler.release>${invoker.maven.compiler.release}</maven.compiler.release>
</properties>
</configuration>
<executions>
Expand Down
7 changes: 2 additions & 5 deletions maven-plugins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,7 @@ under the License.
<profile>
<id>run-its</id>
<properties>
<!-- when testing with JDK9, change these values to 1.6 from cmdline -->
<invoker.maven.compiler.source>${maven.compiler.source}</invoker.maven.compiler.source>
<invoker.maven.compiler.target>${maven.compiler.target}</invoker.maven.compiler.target>
<invoker.maven.compiler.release>${maven.compiler.release}</invoker.maven.compiler.release>
</properties>
<build>
<plugins>
Expand All @@ -197,8 +195,7 @@ under the License.
<pomInclude>*/pom.xml</pomInclude>
</pomIncludes>
<properties>
<maven.compiler.source>${invoker.maven.compiler.source}</maven.compiler.source>
<maven.compiler.target>${invoker.maven.compiler.target}</maven.compiler.target>
<maven.compiler.release>${invoker.maven.compiler.release}</maven.compiler.release>
</properties>
</configuration>
<executions>
Expand Down
11 changes: 5 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -943,9 +943,8 @@ under the License.
</distributionManagement>

<properties>
<javaVersion>8</javaVersion>
<maven.compiler.source>${javaVersion}</maven.compiler.source>
<maven.compiler.target>${javaVersion}</maven.compiler.target>
<javaVersion>17</javaVersion>
<maven.compiler.release>${javaVersion}</maven.compiler.release>
<maven.compiler.showDeprecation>true</maven.compiler.showDeprecation>
<!-- in order to restore default annotation processing behaviour, please override with empty value -->
<maven.compiler.proc>none</maven.compiler.proc>
Expand Down Expand Up @@ -1097,7 +1096,7 @@ under the License.
<artifactId>maven-pmd-plugin</artifactId>
<version>3.23.0</version>
<configuration>
<targetJdk>${maven.compiler.target}</targetJdk>
<targetJdk>${maven.compiler.release}</targetJdk>
<rulesets>
<ruleset>rulesets/maven.xml</ruleset>
</rulesets>
Expand Down Expand Up @@ -1177,7 +1176,7 @@ under the License.
<configuration>
<rules>
<enforceBytecodeVersion>
<maxJdkVersion>${maven.compiler.target}</maxJdkVersion>
<maxJdkVersion>${maven.compiler.release}</maxJdkVersion>
</enforceBytecodeVersion>
</rules>
<fail>true</fail>
Expand Down Expand Up @@ -1454,7 +1453,7 @@ under the License.
<configuration>
<toolchains>
<jdk>
<version>${maven.compiler.target}</version>
<version>${maven.compiler.release}</version>
</jdk>
</toolchains>
</configuration>
Expand Down

0 comments on commit 457ab8e

Please sign in to comment.