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

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


The following commit(s) were added to refs/heads/main by this push:
     new 4f1353e  ORC-FORMAT-8: Add `maven-enforcer-plugin` to enforce Java and 
Maven versions (#9)
4f1353e is described below

commit 4f1353e610ae8b2f5797054953be6dae4404ac04
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Fri Dec 8 14:48:05 2023 -0800

    ORC-FORMAT-8: Add `maven-enforcer-plugin` to enforce Java and Maven 
versions (#9)
    
    ### What changes were proposed in this pull request?
    
    This closes #8 .
    
    ### Why are the changes needed?
    
    To be compatible with Apache ORC 2.0.0, we need to enforce Java and Maven 
versions.
    
    ### How was this patch tested?
    
    Pass the CIs.
---
 pom.xml | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/pom.xml b/pom.xml
index c1fa75a..b595f67 100644
--- a/pom.xml
+++ b/pom.xml
@@ -128,6 +128,39 @@
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-enforcer-plugin</artifactId>
+                <version>3.4.0</version>
+                <dependencies>
+                <dependency>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>extra-enforcer-rules</artifactId>
+                    <version>1.7.0</version>
+                </dependency>
+                </dependencies>
+                <executions>
+                <execution>
+                    <id>enforce-maven</id>
+                        <goals>
+                            <goal>enforce</goal>
+                        </goals>
+                        <configuration>
+                            <rules>
+                                <requireMavenVersion>
+                                    <version>${maven.version}</version>
+                                </requireMavenVersion>
+                                <requireJavaVersion>
+                                    <version>${java.version}</version>
+                                </requireJavaVersion>
+                                <enforceBytecodeVersion>
+                                    
<maxJdkVersion>${java.version}</maxJdkVersion>
+                                </enforceBytecodeVersion>
+                            </rules>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>

Reply via email to