From 03fb0164c259a3a5d043bf55f42139292a4e0c9c Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Tue, 7 Nov 2023 04:14:43 -0800 Subject: [PATCH] Added int parameter option where applicable --- .../bld/extension/CompileKotlinOptions.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) 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. *