Added int parameter option where applicable
This commit is contained in:
parent
6dd83d0073
commit
03fb0164c2
1 changed files with 24 additions and 0 deletions
|
@ -307,6 +307,18 @@ public class CompileKotlinOptions {
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Specify the target version of the generated JVM bytecode.
|
||||
*
|
||||
* @param version the target version
|
||||
* @return this class insance
|
||||
* @see #jdkRelease(String)
|
||||
*/
|
||||
public CompileKotlinOptions jdkRelease(int version) {
|
||||
jdkRelease_ = String.valueOf(version);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Specify the target version of the generated JVM bytecode.
|
||||
* Possible values are 1.8, 9, 10, ..., 21. The default value is 1.8.
|
||||
|
@ -319,6 +331,18 @@ public class CompileKotlinOptions {
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Specify the target version of the generated JVM bytecode.
|
||||
*
|
||||
* @param target the target version
|
||||
* @return this class instance
|
||||
* @see #jvmTarget(String)
|
||||
*/
|
||||
public CompileKotlinOptions jvmTarget(int target) {
|
||||
jvmTarget_ = String.valueOf(target);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable verbose logging output which includes details of the compilation process.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue