As we now have JSpecify and NullAway in our build, we should configure our build to always compile with JDK 24, no matter what JDK is used to run Gradle.
Compiling with JDK 17 fails because of a compiler bug, which is fixed in 24 (and maybe get backported to 17).