Compiles Java source files.
apply plugin: 'java' compileJava { //enable compilation in a separate daemon process options.fork = true //enable incremental compilation options.incremental = true }
Fields inherited from class | Fields |
---|---|
class SourceTask |
TASK_NAME, TASK_DESCRIPTION, TASK_GROUP, TASK_TYPE, TASK_DEPENDS_ON, TASK_OVERWRITE, TASK_ACTION |
Type | Name and description |
---|---|
protected void |
compile(IncrementalTaskInputs inputs) |
protected void |
compile() |
protected org.gradle.internal.Factory<AntBuilder> |
getAntBuilderFactory() |
protected org.gradle.cache.CacheRepository |
getCacheRepository() |
File |
getDependencyCacheDir() |
protected org.gradle.api.internal.tasks.compile.incremental.cache.GeneralCompileCaches |
getGeneralCompileCaches() |
CompileOptions |
getOptions() Returns the compilation options. |
protected JavaPlatform |
getPlatform() |
org.gradle.platform.base.internal.toolchain.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(org.gradle.platform.base.internal.toolchain.ToolResolver toolResolver) Sets the tool resolver that should be used to find the tool to compile the Java source. |
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.