Geertjan's Blog

  • March 24, 2012

Sources of NetBeans Gradle Plugin

Geertjan Wielenga
Product Manager

Here is where you can find the sources of the latest and greatest NetBeans Gradle plugin:


To use it, download the sources above, open the sources into the IDE (which must be 7.1.1 or above), then you'll have a NetBeans module. Right-click it to run the module into a new instance of NetBeans IDE.

In the Options window's Miscellaneous tab, there's a Gradle subtab for setting the Gradle location. In the New File dialog, in the Other category, you'll find a template named "Empty Gradle file". Make sure to name it "build" and to put it in the root directory of the application (by leaving the Folder field empty, you're specifying it should be created in the root directory).

You'll then be able to expand the build.gradle file:

Double-click a task to run it. When you open the file, it opens in the Groovy editor, if the Groovy editor is installed. When you make changes in the file, the list of tasks, shown above, is automatically recreated.

It's at a really early stage of development and it would be great if developers out there would be interested in fixing its bugs and adding more features to it.

Join the discussion

Comments ( 3 )
  • guest Sunday, March 25, 2012

    Hi Geertjan,

    I'm by no means an expert in "pure" NetBeans development, as you know; but I'm more than curious about Gradle (I do hate ant!)

    I've checked out Gradle trunk, and did some "review tests", like this one:

    public class GradleDataObject extends MultiDataObject {

    private static final long serialVersionUID = -4161400787634198210L;

    private transient final CookieSet cookieSet;

    private final Lookup cokieLookUp;

    public GradleDataObject(final FileObject fileObject, final MultiFileLoader loader) throws DataObjectExistsException, IOException {

    super(fileObject, loader);

    cookieSet = getCookieSet();

    cookieSet.add((Node.Cookie) DataEditorSupport.create(GradleDataObject.this, getPrimaryEntry(), cookieSet));

    cokieLookUp = cookieSet.getLookup();




    protected Node createNodeDelegate() {

    return new DataNode(GradleDataObject.this, Children.create(new TaskChildFactory(GradleDataObject.this), true), cokieLookUp);



    Nothing fancy!, but you may find it interesting :)

    BTW, BuildableProject seems deprecated.


    Carlos Hoces

  • Tomasz Bartczak Monday, March 26, 2012

    That's good.

    How about gradle support for Netbeans RCP applications?

    Is there a place to track progress/see what's going on?

  • Geertjan Monday, March 26, 2012

    Here's everything I know about Gradle and NetBeans RCP:


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