Open loosebazooka opened 1 month ago
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?
Ah, we don't have toolchains in sigstore-java yet.
We also want to keep java11 compat, we have all our tests run in Java 11 as well on CI.
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.
might be strange for devs working with java11, but our CI will catch it anyway