Added int parameter option where applicable

This commit is contained in:
Erik C. Thauvin 2023-11-07 04:14:43 -08:00
parent 6dd83d0073
commit 03fb0164c2

View file

@ -307,6 +307,18 @@ public class CompileKotlinOptions {
return this; 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. * Specify the target version of the generated JVM bytecode.
* Possible values are 1.8, 9, 10, ..., 21. The default value is 1.8. * Possible values are 1.8, 9, 10, ..., 21. The default value is 1.8.
@ -319,6 +331,18 @@ public class CompileKotlinOptions {
return this; 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. * Enable verbose logging output which includes details of the compilation process.
* *