|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gradle.api.internal.ConventionTask org.gradle.api.tasks.SourceTask org.gradle.api.tasks.compile.AbstractCompile org.gradle.api.tasks.compile.GroovyCompile
public class GroovyCompile extends AbstractCompile
Compiles Groovy source files, and optionally, Java source files.
Field Summary |
---|
Fields inherited from class SourceTask | |
---|---|
source |
Constructor Summary | |
GroovyCompile()
|
Method Summary | |
---|---|
protected void
|
compile()
|
Compiler
|
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 compiler)
|
void
|
setGroovyClasspath(FileCollection groovyClasspath)
Sets the classpath containing the version of Groovy to use for compilation. |
Methods inherited from class AbstractCompile | |
---|---|
compile, getClasspath, getDestinationDir, getSourceCompatibility, getTargetCompatibility, setClasspath, setDestinationDir, setSourceCompatibility, setTargetCompatibility |
Methods inherited from class SourceTask | |
---|---|
exclude, exclude, exclude, exclude, getDefaultSource, getExcludes, getIncludes, getSource, include, include, include, include, setExcludes, setIncludes, setSource, source |
Constructor Detail |
---|
public GroovyCompile()
Method Detail |
---|
@TaskAction protected void compile()
public Compiler getCompiler()
@InputFiles public FileCollection getGroovyClasspath()
@Nested public GroovyCompileOptions getGroovyOptions()
@Nested public CompileOptions getOptions()
public void setCompiler(Compiler compiler)
public void setGroovyClasspath(FileCollection groovyClasspath)
groovyClasspath
- The classpath. Must not be null.
Gradle API 1.12