CompileOptions
interface CompileOptions
Java compilation options.
Summary
Public functions |
|
|---|---|
Unit |
sourceCompatibility(sourceCompatibility: Any)Language level of the java source code. |
Unit |
targetCompatibility(targetCompatibility: Any)Version of the generated Java bytecode. |
Public properties |
|
|---|---|
String |
Java source files encoding. |
Boolean |
Whether core library desugaring is enabled. |
JavaVersion |
Language level of the java source code. |
JavaVersion |
Version of the generated Java bytecode. |
Public functions
sourceCompatibility
fun sourceCompatibility(sourceCompatibility: Any): Unit
Language level of the java source code.
Similar to what Gradle Java plugin uses. Formats supported are:
-
"1.6" -
1.6 -
JavaVersion.Version_1_6 -
"Version_1_6"
targetCompatibility
fun targetCompatibility(targetCompatibility: Any): Unit
Version of the generated Java bytecode.
Similar to what Gradle Java plugin uses. Formats supported are:
-
"1.6" -
1.6 -
JavaVersion.Version_1_6 -
"Version_1_6"
Public properties
isCoreLibraryDesugaringEnabled
var isCoreLibraryDesugaringEnabled: Boolean
Whether core library desugaring is enabled.
sourceCompatibility
var sourceCompatibility: JavaVersion
Language level of the java source code.
Similar to what Gradle Java plugin uses. Formats supported are:
-
"1.6" -
1.6 -
JavaVersion.Version_1_6 -
"Version_1_6"
targetCompatibility
var targetCompatibility: JavaVersion
Version of the generated Java bytecode.
Similar to what Gradle Java plugin uses. Formats supported are:
-
"1.6" -
1.6 -
JavaVersion.Version_1_6 -
"Version_1_6"