Groovy Documentation

org.gradle.api.tasks.compile
[Java] Class GroovyCompile

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 and Java source files.

Authors:
Hans Dockter


Constructor Summary
GroovyCompile()

 
Method Summary
protected void compile()

GroovyJavaJointCompiler getCompiler()

FileCollection getGroovyClasspath()

GroovyCompileOptions getGroovyOptions()

Gets the options for the groovyc compilation.

CompileOptions getOptions()

void setCompiler(GroovyJavaJointCompiler compiler)

void setGroovyClasspath(FileCollection groovyClasspath)

 
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

GroovyCompile

public GroovyCompile()


 
Method Detail

compile

protected void compile()


getCompiler

public GroovyJavaJointCompiler getCompiler()


getGroovyClasspath

@InputFiles
public FileCollection getGroovyClasspath()


getGroovyOptions

@Nested
public GroovyCompileOptions getGroovyOptions()
Gets the options for the groovyc compilation. To set specific options for the nested javac compilation, use getOptions().


getOptions

@Nested
public CompileOptions getOptions()


setCompiler

public void setCompiler(GroovyJavaJointCompiler compiler)


setGroovyClasspath

public void setGroovyClasspath(FileCollection groovyClasspath)


 

Groovy Documentation