Compilation Instructions for Groovy

Compilation Guide

See the master compilation guidelines for instructions for other platforms.

Supported Groovy Versions

Language Version Compilers Platform
Groovy 2.4.-2.6 groovyc 2.4-2.6 (targeted for JDK7+) JVM 1.6-1.9, 10, 11

Supported Groovy Frameworks

Framework Supported Versions
Grails 3.2-3.3

Compilation Guidance

Groovy applications are typically compiled using the Grails command line system or IDEs that wrap Groovy and Grails, such as IntelliJ or the Groovy/Grails Tool Suite (GGTS).

You must compile and submit Groovy applications as JAR or WAR files. Submit debug symbols for as much of the application as possible.

If you are building your project using Ant, the debug property in the javac tasks needs to be turned on, for example:
<javac debug="on"> ... set of classes
     </javac>

Grails Command Line Settings

If you are building your project with the Grails command line system, change your current working directory to the Groovy application's home directory and run the following command to produce the JAR or WAR file that you can upload to Veracode for analysis:
projectHome$ ./grailsw assemble 

IntelliJ Settings

If you are building your project with IntelliJ IDEA, perform the following actions in the IDE:

  1. Build > Rebuild Project
  2. Build > Make Grails Web Archive

    When the actions complete, the WAR file that you can upload to Veracode for analysis appears in the build/libs/ folder of the project's home directory.