This is an automated email from the ASF dual-hosted git repository.

jiayu pushed a commit to branch SEDONA-211-java-version-to-8
in repository https://gitbox.apache.org/repos/asf/incubator-sedona.git


The following commit(s) were added to refs/heads/SEDONA-211-java-version-to-8 
by this push:
     new acb3982e Update maven compiler plugin to enforce Java 8
acb3982e is described below

commit acb3982e91efb990e4ddf8173703c8938a787e03
Author: Jia Yu <[email protected]>
AuthorDate: Fri Dec 9 17:02:25 2022 -0800

    Update maven compiler plugin to enforce Java 8
---
 pom.xml | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index fd74ec95..6faf5411 100644
--- a/pom.xml
+++ b/pom.xml
@@ -69,7 +69,7 @@
         <sedona.jackson.version>2.13.3</sedona.jackson.version>
         <hadoop.version>3.2.4</hadoop.version>
         <maven.deploy.skip>false</maven.deploy.skip>
-        <maven.compiler.release>8</maven.compiler.release>
+        <maven.compiler.plugin.version>3.10.1</maven.compiler.plugin.version>
         <!-- Actual scala version will be set by a profile.
         Setting a default value helps IDE:s that can't make sense of profiles. 
-->
         <scala.compat.version>2.12</scala.compat.version>
@@ -310,11 +310,20 @@
                 <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-compiler-plugin</artifactId>
-                    <version>3.1</version>
+                    <version>${maven.compiler.plugin.version}</version>
                     <configuration>
                         <source>1.8</source>
                         <target>1.8</target>
+                        <release>8</release>
                     </configuration>
+                    <executions>
+                        <execution>
+                            <phase>compile</phase>
+                            <goals>
+                                <goal>compile</goal>
+                            </goals>
+                        </execution>
+                    </executions>
                 </plugin>
             </plugins>
         </pluginManagement>
@@ -359,7 +368,12 @@
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
-                <version>3.8.1</version>
+                <version>${maven.compiler.plugin.version}</version>
+                <configuration>
+                    <source>1.8</source>
+                    <target>1.8</target>
+                    <release>8</release>
+                </configuration>
                 <executions>
                     <execution>
                         <phase>compile</phase>

Reply via email to