Skip to content

Commit

Permalink
ORC-FORMAT-8: Add maven-enforcer-plugin to enforce Java and Maven v…
Browse files Browse the repository at this point in the history
…ersions (#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.
  • Loading branch information
dongjoon-hyun authored Dec 8, 2023
1 parent ca0112c commit 4f1353e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 4f1353e

Please sign in to comment.