-
Notifications
You must be signed in to change notification settings - Fork 506
ORC-1444: Enforce JDK Bytecode version #1536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
java/pom.xml
Outdated
| <version>${maven.version}</version> | ||
| </requireMavenVersion> | ||
| <enforceBytecodeVersion> | ||
| <maxJdkVersion>1.8</maxJdkVersion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, after merging #1535, shall we use java.version?
java/pom.xml
Outdated
| <artifactId>extra-enforcer-rules</artifactId> | ||
| <version>1.7.0</version> | ||
| </dependency> | ||
| </dependencies> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI seems to complain at this due to the ordering too~
|
Thank you, I addressed the comments and have rebased! |
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM (Pending CIs). Thank you for updates.
| <ignoredScopes>test</ignoredScopes> | ||
| <ignoredScopes>provided</ignoredScopes> | ||
| <excludes> | ||
| <exclude>org.threeten:threeten-extra</exclude> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this was reported before.
|
Thank you! |
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. This feature helps us prevent accidental addition of a higher JDK library. Pass the CIs. Closes #1536 from williamhyun/bytecode. Authored-by: William Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 2357c17) Signed-off-by: Dongjoon Hyun <[email protected]>
|
Merged to main/1.9. |
### 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 apache#1536 from williamhyun/bytecode. Authored-by: William Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
…n` rule ### What changes were proposed in this pull request? This PR aims to remove `threeten-extra` exclusion in `enforceBytecodeVersion` rule. ### Why are the changes needed? The previous exclusion rule was added at ORC 1.9.0 with Java 1.8. It's not required for Java 17 since ORC 2.0. - #1536 ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #2234 from dongjoon-hyun/ORC-1901. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
…n` rule ### What changes were proposed in this pull request? This PR aims to remove `threeten-extra` exclusion in `enforceBytecodeVersion` rule. ### Why are the changes needed? The previous exclusion rule was added at ORC 1.9.0 with Java 1.8. It's not required for Java 17 since ORC 2.0. - #1536 ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #2234 from dongjoon-hyun/ORC-1901. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 1d33d2a) Signed-off-by: Dongjoon Hyun <[email protected]>
…n` rule ### What changes were proposed in this pull request? This PR aims to remove `threeten-extra` exclusion in `enforceBytecodeVersion` rule. ### Why are the changes needed? The previous exclusion rule was added at ORC 1.9.0 with Java 1.8. It's not required for Java 17 since ORC 2.0. - #1536 ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #2234 from dongjoon-hyun/ORC-1901. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 1d33d2a) Signed-off-by: Dongjoon Hyun <[email protected]>
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.