Upgraded to Kotlin 1.9.21
This commit is contained in:
parent
265c852f14
commit
32e68cd079
8 changed files with 30 additions and 34 deletions
|
@ -1,7 +1,7 @@
|
|||
## Kotlin Example
|
||||
To compile & run the Kotlin example:
|
||||
|
||||
```text
|
||||
```console
|
||||
./bld compile run --args="example.html"
|
||||
```
|
||||
|
||||
|
@ -9,6 +9,6 @@ To compile & run the Kotlin example:
|
|||
|
||||
To compile & run the Java example:
|
||||
|
||||
```text
|
||||
```console
|
||||
./bld compile run-java --args="example.html"
|
||||
```
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
package com.example;
|
||||
|
||||
import rife.bld.BaseProject;
|
||||
import rife.bld.BuildCommand;
|
||||
import rife.bld.extension.CompileKotlinOperation;
|
||||
import rife.bld.extension.CompileKotlinOptions;
|
||||
import rife.bld.operations.RunOperation;
|
||||
import rife.bld.BaseProject;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
import static rife.bld.dependencies.Repository.*;
|
||||
import static rife.bld.dependencies.Scope.compile;
|
||||
|
||||
|
@ -25,7 +25,6 @@ public class ReadingTimeExampleBuild extends BaseProject {
|
|||
repositories = List.of(MAVEN_LOCAL, MAVEN_CENTRAL, SONATYPE_SNAPSHOTS_LEGACY);
|
||||
|
||||
scope(compile)
|
||||
.include(dependency("org.jetbrains.kotlin", "kotlin-stdlib", version(1, 9, 20)))
|
||||
.include(dependency("net.thauvin.erik", "readingtime", version(0, 9, 2, "SNAPSHOT")));
|
||||
}
|
||||
|
||||
|
@ -37,11 +36,6 @@ public class ReadingTimeExampleBuild extends BaseProject {
|
|||
public void compile() throws Exception {
|
||||
new CompileKotlinOperation()
|
||||
.fromProject(this)
|
||||
.compileOptions(
|
||||
new CompileKotlinOptions()
|
||||
.jdkRelease(javaRelease)
|
||||
.verbose(true)
|
||||
)
|
||||
.execute();
|
||||
|
||||
// Also compile the Java source code
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue