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

dongjoon pushed a commit to branch branch-1.9
in repository https://gitbox.apache.org/repos/asf/orc.git


The following commit(s) were added to refs/heads/branch-1.9 by this push:
     new b5db1af88 ORC-1443: Enforce Java version
b5db1af88 is described below

commit b5db1af886cdf4c497e0cead362faee90c0817c9
Author: William Hyun <[email protected]>
AuthorDate: Wed Jun 14 23:15:28 2023 -0700

    ORC-1443: Enforce Java version
    
    This PR aims to add enforce java version feature.
    At this moment it is enforced to 1.8, however, we will be able to move it 
up later.
    
    This feature helps enforce the minimum java version.
    
    Pass the CIs.
    
    Closes #1535 from williamhyun/javaenforce.
    
    Lead-authored-by: William Hyun <[email protected]>
    Co-authored-by: Dongjoon Hyun <[email protected]>
    Signed-off-by: William Hyun <[email protected]>
---
 java/pom.xml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/java/pom.xml b/java/pom.xml
index f968c4dcd..b12fc1a0d 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -63,6 +63,7 @@
     <checkstyle.version>10.10.0</checkstyle.version>
     <example.dir>${project.basedir}/../../examples</example.dir>
     <hadoop.version>2.7.3</hadoop.version>
+    <java.version>1.8</java.version>
     <junit.version>5.9.3</junit.version>
     <maven-assembly-plugin.version>3.5.0</maven-assembly-plugin.version>
     <maven-shade-plugin.version>3.4.1</maven-shade-plugin.version>
@@ -811,6 +812,9 @@
                 <requireMavenVersion>
                   <version>${maven.version}</version>
                 </requireMavenVersion>
+                <requireJavaVersion>
+                  <version>${java.version}</version>
+                </requireJavaVersion>
               </rules>
             </configuration>
           </execution>

Reply via email to