Skip to content

Conversation

@williamhyun
Copy link
Member

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.

@williamhyun
Copy link
Member Author

@dongjoon-hyun

java/pom.xml Outdated
<version>${maven.version}</version>
</requireMavenVersion>
<enforceBytecodeVersion>
<maxJdkVersion>1.8</maxJdkVersion>
Copy link
Member

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>
Copy link
Member

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~

@williamhyun
Copy link
Member Author

Thank you, I addressed the comments and have rebased!

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a 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.

@dongjoon-hyun dongjoon-hyun added this to the 1.9.0 milestone Jun 15, 2023
<ignoredScopes>test</ignoredScopes>
<ignoredScopes>provided</ignoredScopes>
<excludes>
<exclude>org.threeten:threeten-extra</exclude>
Copy link
Member

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.

@dongjoon-hyun
Copy link
Member

Thank you!

dongjoon-hyun pushed a commit that referenced this pull request Jun 15, 2023
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]>
@dongjoon-hyun
Copy link
Member

Merged to main/1.9.

cxzl25 pushed a commit to cxzl25/orc that referenced this pull request Jan 11, 2024
### 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]>
dongjoon-hyun added a commit that referenced this pull request May 23, 2025
…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]>
dongjoon-hyun added a commit that referenced this pull request May 23, 2025
…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]>
dongjoon-hyun added a commit that referenced this pull request May 23, 2025
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants