@CacheableTask open class JavaCompile : AbstractCompile
Compiles Java source files.
apply plugin: 'java' tasks.withType(JavaCompile) { //enable compilation in a separate daemon process options.fork = true //enable incremental compilation options.incremental = true }
JavaCompile() |
open fun getClasspath(): FileCollection |
|
open fun getEffectiveAnnotationProcessorPath(): FileCollection
Returns the path to use for annotation processor discovery. Returns an empty collection when no processing should be performed, for example when no annotation processors are present in the compile classpath or annotation processing has been disabled. You can specify this path using This path is always empty when annotation processing is disabled. |
|
open fun getOptions(): CompileOptions
Returns the compilation options. |
|
open fun getSource(): FileTree
{@inheritDoc} |
|
open fun getToolChain(): JavaToolChain
Returns the tool chain that will be used to compile the Java source. |
|
open fun setToolChain(toolChain: JavaToolChain): Unit
Sets the tool chain that should be used to compile the Java source. |
open fun getDestinationDir(): File
Returns the directory to generate the |
|
open fun getSourceCompatibility(): String
Returns the Java language level to use to compile the source files. |
|
open fun getTargetCompatibility(): String
Returns the target JVM to generate the |
|
open fun setClasspath(configuration: FileCollection): Unit
Sets the classpath to use to compile the source files. |
|
open fun setDestinationDir(destinationDir: File): Unit open fun setDestinationDir(destinationDir: Provider<File>): Unit
Sets the directory to generate the |
|
open fun setSourceCompatibility(sourceCompatibility: String): Unit
Sets the Java language level to use to compile the source files. |
|
open fun setTargetCompatibility(targetCompatibility: String): Unit
Sets the target JVM to generate the |
open class PlatformJavaCompile : JavaCompile
A platform-aware Java compile task. |