top | item 28820782

(no title)

chadrs | 4 years ago

Yeah I agree we should be using 17 except Gradle still does not support it, despite having been out for an entire month...

https://docs.gradle.org/current/userguide/compatibility.html

discuss

order

derefr|4 years ago

Technically it's the Groovy runtime that doesn't support 17 (or specifically, JVM bytecode v62+) yet. And then only because it seems to do an explicit whitelisted-version check during some buildscript static-analysis bootstrap phase.

If you switch your Gradle buildscript files over to being written in Kotlin, the problem goes away, as Kotlin's runtime doesn't seem to use any similar explicit checks.

(Doing so also allows you to go further and test out EA JVM builds, e.g. Project Loom, which Groovy-based buildscripts have never been, and will never be, happy with.)

isbvhodnvemrwvn|4 years ago

Isn't that kind of thing you'd expect using Gradle? It's not the first time it happened, they have been late to the party for a lot of the recent releases.

geodel|4 years ago

I guess it serves right to folks who endlessly hated Maven and liked this "new", "next generation" , "modern" build system with no XML. Turns out as long as JDK-8 is supported version of Java a lot of tools like this look modern.

ptx|4 years ago

If I understand that page correctly, you can use Java 17 to compile and run your program, as long as you also have Java 16 or older installed to run Gradle itself.

krzyk|4 years ago

Which is funny because EA builds were out there much longer, just RC was out there for another month.