Skip to content

Commit 2357c17

Browse files
williamhyundongjoon-hyun
authored andcommitted
ORC-1444: Enforce JDK Bytecode version
### What changes were proposed in this pull request? This PR aims to enforce the JDK Bytecode version. At this moment it is enforced to 1.8, however, we will be able to move it up later. ### Why are the changes needed? This feature helps us prevent accidental addition of a higher JDK library. ### How was this patch tested? Pass the CIs. Closes #1536 from williamhyun/bytecode. Authored-by: William Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 669d7d7 commit 2357c17

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

java/pom.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,13 @@
618618
<groupId>org.apache.maven.plugins</groupId>
619619
<artifactId>maven-enforcer-plugin</artifactId>
620620
<version>3.3.0</version>
621+
<dependencies>
622+
<dependency>
623+
<groupId>org.codehaus.mojo</groupId>
624+
<artifactId>extra-enforcer-rules</artifactId>
625+
<version>1.7.0</version>
626+
</dependency>
627+
</dependencies>
621628
<executions>
622629
<execution>
623630
<id>enforce-maven</id>
@@ -632,6 +639,14 @@
632639
<requireJavaVersion>
633640
<version>${java.version}</version>
634641
</requireJavaVersion>
642+
<enforceBytecodeVersion>
643+
<maxJdkVersion>${java.version}</maxJdkVersion>
644+
<ignoredScopes>test</ignoredScopes>
645+
<ignoredScopes>provided</ignoredScopes>
646+
<excludes>
647+
<exclude>org.threeten:threeten-extra</exclude>
648+
</excludes>
649+
</enforceBytecodeVersion>
635650
<bannedDependencies>
636651
<excludes>
637652
<exclude>org.apache.hadoop:hadoop-common</exclude>

0 commit comments

Comments
 (0)