Compiles Groovy source files, and optionally, Java source files.
Type | Name and description |
---|---|
protected void |
compile() |
Compiler<GroovyJavaJointCompileSpec> |
getCompiler() |
FileCollection |
getGroovyClasspath() Returns the classpath containing the version of Groovy to use for compilation. |
GroovyCompileOptions |
getGroovyOptions() Gets the options for the Groovy compilation. |
CompileOptions |
getOptions() Returns the options for Java compilation. |
void |
setCompiler(Compiler<GroovyJavaJointCompileSpec> compiler) |
void |
setGroovyClasspath(FileCollection groovyClasspath) Sets the classpath containing the version of Groovy to use for compilation. |
Methods inherited from class | Name |
---|---|
class AbstractCompile |
compile, getClasspath, getDestinationDir, getSourceCompatibility, getTargetCompatibility, setClasspath, setDestinationDir, setSourceCompatibility, setTargetCompatibility |
Returns the classpath containing the version of Groovy to use for compilation.
Gets the options for the Groovy compilation. To set specific options for the nested Java compilation, use getOptions().
Returns the options for Java compilation.
Sets the classpath containing the version of Groovy to use for compilation.
groovyClasspath
- The classpath. Must not be null.