api / org.gradle.api.tasks.compile

Package org.gradle.api.tasks.compile

Types

AbstractCompile

abstract class AbstractCompile : SourceTask

The base class for all JVM-based language compilation tasks.

AbstractOptions

abstract class AbstractOptions : Serializable

Base class for compilation-related options.

BaseForkOptions

open class BaseForkOptions : AbstractOptions

Fork options for compilation. Only take effect if fork is true.

CompileOptions

open class CompileOptions : AbstractOptions

Main options for Java compilation.

CompilerArgumentProvider

interface CompilerArgumentProvider : CommandLineArgumentProvider

Provides command-line arguments to the compiler.

DebugOptions

open class DebugOptions : AbstractOptions

Debug options for Java compilation. Only take effect if CompileOptions#debug is set to true.

ForkOptions

open class ForkOptions : BaseForkOptions

Fork options for Java compilation. Only take effect if CompileOptions.fork is true.

GroovyCompile

open class GroovyCompile : AbstractCompile

Compiles Groovy source files, and optionally, Java source files.

GroovyCompileOptions

open class GroovyCompileOptions : AbstractOptions

Compilation options to be passed to the Groovy compiler.

GroovyForkOptions

open class GroovyForkOptions : BaseForkOptions

Fork options for Groovy compilation. Only take effect if GroovyCompileOptions.fork is true.

JavaCompile

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 }