Open yschimke opened 7 months ago
Or even better, let’s configure Gradle to build on a consistent JVM, regardless of what your environment provides.
https://jakewharton.com/gradle-toolchains-are-rarely-a-good-idea/
I guess if we bump this up high, like the latest LTS, it's not terrible?
LTS releases are for JVM deployments where you are unable to upgrade for (mostly illogical) reasons. Aside from compatibility with build tooling, there's no reason not to use the latest JDK. The best LTS version is the latest version, as it's where security fixes and performance improvements land first.
Thanks. I figured out the issue with gradle. I had my JVM set to Java 8. It works with Java 21.
Now these should be gone.
Originally posted by @ArloL in https://github.com/square/okhttp/issues/8189#issuecomment-1890454018
We should fail earlier with a clear message in these cases. Or maybe gradle has a way to cause that?