Skip to content

Commit

Permalink
Update build to use Java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed Sep 6, 2021
1 parent 6b42d55 commit b75b020
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
7 changes: 3 additions & 4 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,13 @@
</executions>
</plugin>

<!-- Restricts the Java version to 1.8 -->
<!-- Restricts the Java version to 11 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<release>11</release>
<compilerArgument>-Xlint:unchecked</compilerArgument>
</configuration>
</plugin>
Expand Down Expand Up @@ -240,7 +239,7 @@
<goal>jar</goal>
</goals>
<configuration>
<source>1.8</source>
<source>11</source>
<additionalJOption>-Xdoclint:none</additionalJOption>
<description>Jakarta Expression Language API documentation</description>
<doctitle>Jakarta Expression Language API documentation</doctitle>
Expand Down
7 changes: 3 additions & 4 deletions impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,13 @@
</configuration>
</plugin>

<!-- Restricts the Java version to 1.8 -->
<!-- Restricts the Java version to 11 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<release>11</release>
<compilerArgument>-Xlint:unchecked</compilerArgument>
</configuration>
</plugin>
Expand All @@ -199,7 +198,7 @@
<goal>jar</goal>
</goals>
<configuration>
<source>1.8</source>
<source>11</source>
<additionalJOption>-Xdoclint:none</additionalJOption>
<groups>
<group>
Expand Down
8 changes: 4 additions & 4 deletions spec/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2019, 2020 Contributors to the Eclipse Foundation.
Copyright (c) 2019, 2021 Contributors to the Eclipse Foundation.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -95,7 +95,7 @@
<build>
<defaultGoal>package</defaultGoal>
<plugins>
<!-- Sets minimal Maven version to 3.5.4 and Java version to 8 -->
<!-- Sets minimal Maven version to 3.5.4 and Java version to 11 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
Expand All @@ -113,8 +113,8 @@
<message>You need Maven 3.5.4 or higher</message>
</requireMavenVersion>
<requireJavaVersion>
<version>1.8</version>
<message>You need JDK8 or higher</message>
<version>11</version>
<message>You need Java 11 or higher</message>
</requireJavaVersion>
</rules>
</configuration>
Expand Down

0 comments on commit b75b020

Please sign in to comment.