Skip to content

Commit 03fb016

Browse files
committed
Added int parameter option where applicable
1 parent 6dd83d0 commit 03fb016

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/main/java/rife/bld/extension/CompileKotlinOptions.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,18 @@ public CompileKotlinOptions jdkRelease(String version) {
307307
return this;
308308
}
309309

310+
/**
311+
* Specify the target version of the generated JVM bytecode.
312+
*
313+
* @param version the target version
314+
* @return this class insance
315+
* @see #jdkRelease(String)
316+
*/
317+
public CompileKotlinOptions jdkRelease(int version) {
318+
jdkRelease_ = String.valueOf(version);
319+
return this;
320+
}
321+
310322
/**
311323
* Specify the target version of the generated JVM bytecode.
312324
* Possible values are 1.8, 9, 10, ..., 21. The default value is 1.8.
@@ -319,6 +331,18 @@ public CompileKotlinOptions jvmTarget(String target) {
319331
return this;
320332
}
321333

334+
/**
335+
* Specify the target version of the generated JVM bytecode.
336+
*
337+
* @param target the target version
338+
* @return this class instance
339+
* @see #jvmTarget(String)
340+
*/
341+
public CompileKotlinOptions jvmTarget(int target) {
342+
jvmTarget_ = String.valueOf(target);
343+
return this;
344+
}
345+
322346
/**
323347
* Enable verbose logging output which includes details of the compilation process.
324348
*

0 commit comments

Comments
 (0)