Geertjan's Blog

  • September 6, 2011

Gradle in NetBeans (Part 2)

Geertjan Wielenga
Product Manager

So, the NetBeans/Gradle team has expanded over night by 1/3, now also including Robert Novotny. He provided the dependency resolution code, as well as the code for some nice templates (one for Java SE and one for Java EE), while Martin provided the code for calling Gradle tasks and for accessing the output, which is now integrated into the Output window. My part is mainly to handle the NetBeans IDE integration, which currently looks as follows:

As you can see, the tasks provided by the plugins referenced in the Gradle build file (in this case, not only "java", but also "war" and "jetty") are available and can be run by double-clicking on their node. In addition, the dependencies declared in the Gradle file are displayed in a dedicated node, after they have been downloaded. When a change is made in the Gradle file, the file is reparsed and the nodes are recreated (pretty quickly, only a 2 or 3 second delay). All this is made possible by the Gradle Tooling API, which Martin and Robert have a pretty good understanding of (though oddly one of the most useful classes in the Gradle Tooling API is named EclipseProject, which is now well integrated into the NetBeans plugin), so the team work is great.

Now, on to fixing various bugs that have come up so far!

Join the discussion

Comments ( 4 )
  • Rajmahendra Tuesday, September 6, 2011


    Is it possible to share the plugin bin so i can try ?

  • Inge Wednesday, September 7, 2011

    Me too!

  • Rajmahendra Thursday, September 8, 2011

    Dont forget to group the tasks. When we apply more plugins tasks list will grow like anything.

  • David Pinto Friday, October 14, 2011

    i'd be elated to try out any beta plugin and give feedback or help ... just lemme know ... thx

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.