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
@get:Nullable
@get:Input
open var encoding: String
Link copied to clipboard
@get:Nullable
@get:Input
open var extensionDirs: String
Link copied to clipboard

Functions

Link copied to clipboard
open fun debugOptions(action: Action<in DebugOptions>)
Execute the given action against getDebugOptions.
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.
Link copied to clipboard
Returns options for generating debugging information.
Link copied to clipboard
abstract fun getForkOptions(): ForkOptions
Returns options for running the compiler in a child process.
Link copied to clipboard
Returns the directory to place source files generated by annotation processors.
Link copied to clipboard
If this option is set to a non-null directory, it will be passed to the Java compiler's `-h` option, prompting it to generate native headers to that directory.
Link copied to clipboard
Used to enable or disable incremental compilation after a failure.
Link copied to clipboard
Set the main class of the Java module, if the module is supposed to be executable.
Link copied to clipboard
Set the version of the Java module.
Link copied to clipboard
Configures the Java language version for this compile task (--release compiler flag).
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.
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.