neilcsmith-net commented on PR #8223:
URL: https://github.com/apache/netbeans/pull/8223#issuecomment-2637253666

   In addition (as discussed on Slack), as a future step it would be good to 
remove the whole `wrapper` update phase and just pass the right Gradle version 
to the Tooling API and run the `init` step in that.
   
   This, while a bad idea without caching and configuration, seems to work and 
leave the right wrapper in place -
   
   ```java
   public Set<FileObject> execute() {
       GradleConnector gconn = GradleConnector.newConnector();
       try {
            
gconn.useGradleVersion(GradleDistributionManager.get().availableDistributions(true).get(0).getVersion());
        } catch (Exception ex) {
            Exceptions.printStackTrace(ex);
        }
        JavaRuntimeManager.JavaRuntime defaultRuntime = 
GradleExperimentalSettings.getDefault().getDefaultJavaRuntime();
   ```


-- 
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

Reply via email to