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. |
protected JavaPlatform |
getPlatform() |
ToolResolver |
getToolResolver() Returns the tool resolver that will be used to find the tool to compile the Java source. |
void |
setDependencyCacheDir(File dependencyCacheDir) |
void |
setToolResolver(ToolResolver toolResolver) Sets the tool resolver that should be used to find the tool 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 resolver that will be used to find the tool to compile the Java source.
Sets the tool resolver that should be used to find the tool to compile the Java source.
toolResolver
- The tool resolver.