diff --git a/src/main/java/rife/bld/extension/CompileKotlinOptions.java b/src/main/java/rife/bld/extension/CompileKotlinOptions.java index 0be8e98..ff82c56 100644 --- a/src/main/java/rife/bld/extension/CompileKotlinOptions.java +++ b/src/main/java/rife/bld/extension/CompileKotlinOptions.java @@ -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. *