5 ms·
Gradle has support for running and building with different JDK versions (it's not new with Gradle 7 but it's a recent feature). So it was possible to support b
by snafu109 5y ago
Gradle has support for running and building with different JDK versions (it's not new with Gradle 7 but it's a recent feature).
So it was possible to support building Java 16 projects while running Gradle on a supported Java version before Gradle 7 was released.
https://docs.gradle.org/current/userguide/toolchains.html https://docs.gradle.org/current/userguide/toolchains.html
- jhhh 5y agoDoesn't really seem like what you are saying is true: https://github.com/gradle/gradle/issues/13481 https://github.com/gradle/gradle/issues/13481.
- snafu109 5y agoI'm guessing you only read the issue or title on that link, because the second comment on that issue is from one of the Gradle maintainers suggesting using toolchains (which I linked to), with follow ups from various users advising some success, allowing them to target Java 16 while running Gradle on an earlier, supported version.
- jhhh 5y agoThe last comment by a gradle team member, before closing the ticket says "... you won't be able to run Gradle 6.8.x on Java 16". Some users having some success compiling isn't really a ringing endorsement of a build system when it's clearly not working completely.
- snafu109 5y ago> "... you won't be able to run Gradle 6.8.x on Java 16" Exactly. But you could run Gradle on Java 8-15 and use the new toolchains support to build with Java 16. I'm not saying setting up toolchains is frictionless or even reliable yet (given the feature is so new) but it's there.