gsartori opened a new issue, #15413:
URL: https://github.com/apache/grails-core/issues/15413

   ### Feature description
   
   Since newer Gradle versions (7+) are pushing the Java Toolchains approach as 
the standard way to manage JDK versions, it might make sense for our templates 
to adopt that syntax by default.
   
   ```
   java {
       toolchain {
            languageVersion = JavaLanguageVersion.of(25)
       }
   }
   ```
   
   Right now we use:
   
   `compileJava.options.release = 25`
   
   which works for bytecode targeting but doesn’t guarantee the JDK actually 
used for compilation, tests, and runtime tasks. Toolchains give us a more 
consistent and reproducible setup (and automatic JDK provisioning when needed), 
which feels like a better fit for newbies.
   
   Not a big deal of course, just thought it could be a nice improvement for 
new apps going forward.
   
   PS: I'm sorry at the moment I don't have bandwidth to make a PR and test it


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to