CompileOptions

Main options for Java compilation.

Constructors

Link copied to clipboard
@Inject
constructor(objectFactory: ObjectFactory)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@get:Input
open var compilerArgs: List<String>
Link copied to clipboard
Link copied to clipboard
@get:Nullable
@get:Input
open var encoding: String
Link copied to clipboard
@get:Nullable
@get:Input
open var extensionDirs: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun debug(debugArgs: Map<String, Any>): CompileOptions
Convenience method to set DebugOptions with named parameter syntax.
Link copied to clipboard
inline fun CompileOptions.debug(vararg debugArgs: Pair<String, Any?>): CompileOptions

Kotlin extension function for org.gradle.api.tasks.compile.CompileOptions.debug.

Link copied to clipboard
open fun debugOptions(action: Action<in DebugOptions>)
Execute the given action against getDebugOptions.
Link copied to clipboard
open fun define(args: Map<String, Any>)
Link copied to clipboard
inline fun AbstractOptions.define(vararg args: Pair<String, Any?>)

Kotlin extension function for org.gradle.api.tasks.compile.AbstractOptions.define.

Link copied to clipboard
open fun fork(forkArgs: Map<String, Any>): CompileOptions
Convenience method to set ForkOptions with named parameter syntax.
Link copied to clipboard
inline fun CompileOptions.fork(vararg forkArgs: Pair<String, Any?>): CompileOptions

Kotlin extension function for org.gradle.api.tasks.compile.CompileOptions.fork.

Link copied to clipboard
open fun forkOptions(action: Action<in ForkOptions>)
Execute the given action against getForkOptions.
Link copied to clipboard
Returns all compiler arguments, added to the getCompilerArgs or the getCompilerArgumentProviders property.
@Nullable
@ReplacedBy(value = "generatedSourceOutputDirectory")
open fun getAnnotationProcessorGeneratedSourcesDirectory(): File
Returns the directory to place source files generated by annotation processors.
Link copied to clipboard
open fun isDebug(): Boolean
Tells whether to include debugging information in the generated class files.
Link copied to clipboard
Tells whether to log details of usage of deprecated members or classes.
Link copied to clipboard
Tells whether to fail the build when compilation fails.
Link copied to clipboard
open fun isFork(): Boolean
Tells whether to run the compiler in its own process.
Link copied to clipboard
informs whether to use incremental compilation feature.
Link copied to clipboard
Tells whether to log the files to be compiled.
Link copied to clipboard
Tells whether to produce verbose output.
Link copied to clipboard
Tells whether to log warning messages.
Sets the directory to place source files generated by annotation processors.
Link copied to clipboard
open fun setDebug(debug: Boolean)
Sets whether to include debugging information in the generated class files.
Link copied to clipboard
open fun setDeprecation(deprecation: Boolean)
Sets whether to log details of usage of deprecated members or classes.
Link copied to clipboard
open fun setFailOnError(failOnError: Boolean)
Sets whether to fail the build when compilation fails.
Link copied to clipboard
open fun setFork(fork: Boolean)
Sets whether to run the compiler in its own process.
Link copied to clipboard
open fun setIncremental(incremental: Boolean): CompileOptions
Configure the java compilation to be incremental (e.g.
Link copied to clipboard
open fun setListFiles(listFiles: Boolean)
Sets whether to log the files to be compiled.
Link copied to clipboard
open fun setVerbose(verbose: Boolean)
Sets whether to produce verbose output.
Link copied to clipboard
open fun setWarnings(warnings: Boolean)
Sets whether to log warning messages.