Compilation options.
Type | Name and description |
---|---|
org.gradle.api.JavaVersion |
getDefaultJavaVersion() |
String |
getEncoding() |
org.gradle.api.JavaVersion |
getSourceCompatibility() Language level of the source code. |
org.gradle.api.JavaVersion |
getTargetCompatibility() Version of the generated Java bytecode. |
void |
setDefaultJavaVersion(org.gradle.api.JavaVersion defaultJavaVersion) |
void |
setEncoding(String encoding) |
void |
setSourceCompatibility(Object sourceCompatibility) Language level of the source code. |
void |
setTargetCompatibility(Object targetCompatibility) Language level of the target code. |
Language level of the source code.
Similar to what Gradle Java plugin uses.
Version of the generated Java bytecode.
Similar to what Gradle Java plugin uses.
Language level of the source code.
Formats supported are : "1.6" 1.6 JavaVersion.Version_1_6 "Version_1_6"
Language level of the target code.
Formats supported are : "1.6" 1.6 JavaVersion.Version_1_6 "Version_1_6"