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

only run errorpone in java 17+ #837

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

loosebazooka
Copy link
Member

might be strange for devs working with java11, but our CI will catch it anyway

@loosebazooka loosebazooka requested review from vlsi and patflynn October 25, 2024 15:05
might be strange for devs working with java11, but our CI will
catch it anyway

Signed-off-by: Appu Goundan <[email protected]>
@vlsi
Copy link
Collaborator

vlsi commented Oct 25, 2024

I thought we use toolchains for the build, so the build should always use Java 17 no matter which Java is the default. Isn't it the case?

@vlsi
Copy link
Collaborator

vlsi commented Oct 25, 2024

Ah, we don't have toolchains in sigstore-java yet.

@loosebazooka
Copy link
Member Author

We also want to keep java11 compat, we have all our tests run in Java 11 as well on CI.

@vlsi
Copy link
Collaborator

vlsi commented Oct 25, 2024

We'd better use Java 17 for the build, and use --release 11 to target Java 11 bytecode/classlib.
Then we could use whatever version for executing the tests.

Using Java 17 for the build would avoid us running into javac11 bugs, and it would make all the devs produce pretty-much the same bytecode.

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.

2 participants