Slackbot
02/21/2023, 9:24 PMChris Lee
02/21/2023, 10:11 PMGiorgio Antonioli
02/21/2023, 10:18 PMChris Lee
02/21/2023, 10:22 PMJavaPluginExtension
and use that elsewhere, e.g. set it on an extension of your plugin. Everything is set as a property such that it will be live-updated as needed.Giorgio Antonioli
02/21/2023, 10:27 PMVampire
02/21/2023, 11:45 PMpluginManagement
block of the settings script like here: https://github.com/Vampire/setup-wsl/blob/master/settings.gradle.kts#L21-L24 to properly fail early with an understandable error message.
What you probably would like to have is in the very far future this: https://github.com/gradle/gradle/issues/2508Giorgio Antonioli
02/22/2023, 12:30 AMI usually just let builds that need something other than the Gradle minimum JVM version early in theThis is a good suggestion. Failing early with a clearer message specific to the project makes sense, thanks very much!block of the settings script like here:pluginManagement
What you probably would like to have is in the very far future this:Yes, that was basically what I meant, thanks for the reference. I understand that removing the need of a pre-installed JDK would be quite a far and big change on the Gradle side since it needs to work in the generic case. For my specific case we can handle this outside Gradle with suboptimal solutions which are specific to that project (e.g. pre-downloading a specific version of the JDK if our minimum requirements are not satisfied). Thanks for your inputs though, surely I'll add the "guard" statement to fail the build fast