Upgraded to Kotlin 1.9.21

This commit is contained in:
Erik C. Thauvin 2023-11-23 17:51:52 -08:00
parent 265c852f14
commit 32e68cd079
8 changed files with 30 additions and 34 deletions

View file

@ -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"
```

View file

@ -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

View file

@ -1,7 +1,7 @@
## Kotlin Example
To compile & run the Kotlin example:
```text
```console
./gradlew run --args="example.html"
```
@ -9,6 +9,6 @@ To compile & run the Kotlin example:
To compile & run the Java example:
```text
```console
./gradlew runJava --args="example.html"
```

View file

@ -2,8 +2,8 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("application")
id("com.github.ben-manes.versions") version "0.49.0"
kotlin("jvm") version "1.9.20"
id("com.github.ben-manes.versions") version "0.50.0"
kotlin("jvm") version "1.9.21"
}
repositories {