# getCompilerArgs

@Input
abstract fun getCompilerArgs(): ListProperty<String>(source)

Returns any additional arguments to be passed to the compiler. Defaults to the empty list. Compiler arguments not supported by the DSL can be added here. For example, it is possible to pass the `--enable-preview` option that was added in newer Java versions:

    compilerArgs.add("--enable-preview")

Content copied to clipboard
Note that if `--release` is added then `-target` and `-source` are ignored.