neilcsmith-net opened a new pull request, #8606: URL: https://github.com/apache/netbeans/pull/8606
Support for using the latest Gradle version when initializing a project was added initially in #7029 but it's somewhat temperamental. It does not always pick up later versions, and it works by reinitializing the wrapper, potentially downloading two different Gradle versions. This PR adds a new method to `GradleDistributionManager` to query the current (latest) version from the Gradle web service at https://services.gradle.org/versions/current Support for setting a Gradle version is added in to `TemplateOperation.InitOperation`. If set, this is passed to the Tooling API - https://docs.gradle.org/current/javadoc/org/gradle/tooling/GradleConnector.html#useGradleVersion(java.lang.String) This downloads the required Gradle version and runs the init step with it. The current version is queried in the wizard, replacing the previous additional wrapper step. In future this should allow the wizard to be enhanced to offer a choice of Gradle version. With this change, the new Gradle project wizard should currently pick up the current `8.14.2` version, rather than the `8.14` version that matches the bundled Tooling API. The Tooling API is designed to be forwards compatible, so this should reduce the pressure to update it very late in the release cycle or wait on Gradle releases. This change was also discussed on Slack and in #8461 -- 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: notifications-unsubscr...@netbeans.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For additional commands, e-mail: notifications-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists