GroovyCompileOptions

Compilation options to be passed to the Groovy compiler.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
@get:Nullable
open var configurationScript: File
Link copied to clipboard
@get:Input
open var encoding: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@get:Nullable
@get:Input
open var optimizationOptions: Map<String, Boolean>
Link copied to clipboard
open var stubDir: File

Functions

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>): GroovyCompileOptions
Convenience method to set GroovyForkOptions with named parameter syntax.
Link copied to clipboard
inline fun GroovyCompileOptions.fork(vararg forkArgs: Pair<String, Any?>): GroovyCompileOptions

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

Link copied to clipboard
Tells whether the compilation task should fail if compile errors occurred.
Link copied to clipboard
open fun isFork(): Boolean
Tells whether to run the Groovy compiler in a separate process.
Link copied to clipboard
Whether the Groovy code should be subject to Java annotation processing.
Link copied to clipboard
Tells whether Java stubs for Groovy classes generated during Java/Groovy joint compilation should be kept after compilation has completed.
Link copied to clipboard
Tells whether to print which source files are to be compiled.
Link copied to clipboard
Whether the Groovy compiler generate metadata for reflection on method parameter names on JDK 8 and above.
Link copied to clipboard
Tells whether to turn on verbose output.
Link copied to clipboard
open fun setFailOnError(failOnError: Boolean)
Sets whether the compilation task should fail if compile errors occurred.
Link copied to clipboard
open fun setFork(fork: Boolean)
Sets whether to run the Groovy compiler in a separate process.
Link copied to clipboard
open fun setJavaAnnotationProcessing(javaAnnotationProcessing: Boolean)
Sets whether Java annotation processors should process annotations on stubs.
Link copied to clipboard
open fun setKeepStubs(keepStubs: Boolean)
Sets whether Java stubs for Groovy classes generated during Java/Groovy joint compilation should be kept after compilation has completed.
Link copied to clipboard
open fun setListFiles(listFiles: Boolean)
Sets whether to print which source files are to be compiled.
Link copied to clipboard
open fun setParameters(parameters: Boolean)
Sets whether metadata for reflection on method parameter names should be generated.
Link copied to clipboard
open fun setVerbose(verbose: Boolean)
Sets whether to turn on verbose output.