class Buildr::Groovy::Groovyc

Groovyc compiler:

compile.using(:groovyc)

You need to require ‘buildr/groovy/compiler’ if you need to use this compiler.

Used by default if .groovy files are found in the src/main/groovy directory (or src/test/groovy) and sets the target directory to target/classes (or target/test/classes).

Groovyc is a joint compiler, this means that when selected for a project, this compiler is used to compile both groovy and java sources. It's recommended that Groovy sources are placed in the src/main/groovy directory, even though this compiler also looks in src/main/java

Groovyc accepts the following options:

Constants

ANT_TASK
GROOVYC_OPTIONS
JAVAC_OPTIONS
OPTIONS
REQUIRES

The groovyc compiler jars are added to classpath at load time, if you want to customize artifact versions, you must set them on the

artifact_ns(Buildr::Groovy::Groovyc).groovy = '1.7.1'

namespace before this file is required.