Enabling a Java Application to Support Groovy

See Also 

After you create a new Java application, you can specify that you would like the application to support Groovy. You will then be able to code in Groovy, compile Groovy files, and ensure that the IDE excludes the Groovy source files from the JAR that it creates when the project is built.

To enable a Java application to support Groovy:

  1. Create a new Java application.
  2. In the Projects window, right-click the project node and choose Properties.
  3. In the Project Properties dialog box, choose Groovy and select the Enable Groovy checkbox.
  4. Click OK.

The IDE adds the Groovy JAR to your application, which you can see in the application's Libraries node. The build.xml file is changed and Groovy files will be excluded when you build the application.

See Also
About Working with Groovy
Editing Groovy Source Files

Legal Notices