Compiles Java source files.
apply plugin: 'java' compileJava { //enable compilation in a separate daemon process options.fork = true //enable incremental compilation options.incremental = true }
Type | Name and description |
---|---|
protected void |
compile(IncrementalTaskInputs inputs) |
protected void |
compile() |
protected Factory<AntBuilder> |
getAntBuilderFactory() |
protected CacheRepository |
getCacheRepository() |
File |
getDependencyCacheDir() |
protected GeneralCompileCaches |
getGeneralCompileCaches() |
CompileOptions |
getOptions() Returns the compilation options. |
JavaToolChain |
getToolChain() Returns the tool chain that will be used to compile the Java source. |
void |
setDependencyCacheDir(File dependencyCacheDir) |
void |
setToolChain(JavaToolChain toolChain) Sets the tool chain that should be used to compile the Java source. |
Methods inherited from class | Name |
---|---|
class AbstractCompile |
compile, getClasspath, getDestinationDir, getSourceCompatibility, getTargetCompatibility, setClasspath, setDestinationDir, setSourceCompatibility, setTargetCompatibility |
Returns the compilation options.
Returns the tool chain that will be used to compile the Java source.
Sets the tool chain that should be used to compile the Java source.
toolChain
- The tool chain.