CompileOptions
interface CompileOptions
Java compilation options.
Summary
Public functions |
|
---|---|
@Incubating Unit |
sourceCompatibility(sourceCompatibility: Any?) Language level of the java source code. |
@Incubating 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
@Incubating
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
@Incubating
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
val isCoreLibraryDesugaringEnabled: Boolean
Whether core library desugaring is enabled.
sourceCompatibility
val 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
val 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"