Skip to content
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

build: fixes bytecode level and updates build versions (#236) #1393

Merged
merged 2 commits into from
Jan 6, 2024

Conversation

codefromthecrypt
Copy link
Member

This fixes a problem where we weren't releasing jars with the right bytecode level, due to a constant release=8. As we no longer can rely on RetroLambda to rewrite code, I've had to port things to the appropriate bytecode level manually. I also updated build deps that could be.

Special note: Projects that optionally use types above their bytecode level unset maven.compiler.release in the release profile. This allows the project to compile classes not at the source level. This is used in brave core and okhttp, for example.

This fixes a problem where we weren't releasing jars with the right
bytecode level, due to a constant release=8. As we no longer can rely on
RetroLambda to rewrite code, I've had to port things to the appropriate
bytecode level manually. I also updated build deps that could be.

Special note: Projects that optionally use types above their bytecode
level *unset* maven.compiler.release in the release profile. This allows
the project to compile classes not at the source level. This is used in
brave core and okhttp, for example.

Signed-off-by: Adrian Cole <adrian@tetrate.io>
<main.java.version>1.6</main.java.version>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<!-- Clear the release tag, so that we can compile Platform without
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

example of clearing the tag.. this is what broke the bytecode version by accident last release, as the source/target were overridden by a hard-coded release property. Setting this to 6 breaks our ability to compile brave.internal.Platform, so clearing is the only way.

Signed-off-by: Adrian Cole <adrian@tetrate.io>
@codefromthecrypt codefromthecrypt merged commit 41fe2ee into master Jan 6, 2024
3 checks passed
@codefromthecrypt codefromthecrypt deleted the fix-compile branch January 6, 2024 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant