Upgraded to Kotlin 1.9.21

This commit is contained in:
Erik C. Thauvin 2023-11-23 17:45:41 -08:00
parent 21b4af20d4
commit 1e016de5fb
10 changed files with 33 additions and 627 deletions

View file

@ -1,7 +1,7 @@
## Kotlin Example
To compile & run the Kotlin example:
```text
```console
./bld compile
./bld run
@ -13,7 +13,7 @@ To compile & run the Kotlin example:
To compile & run the Java example:
```text
```console
./bld compile
./bld run-java

View file

@ -1,10 +1,9 @@
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;
@ -26,7 +25,6 @@ public class CryptoPriceExampleBuild 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", "cryptoprice", version(1, 0, 2, "SNAPSHOT")))
.include(dependency("org.json", "json", "20231013"));
}
@ -39,11 +37,6 @@ public class CryptoPriceExampleBuild 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
./gradlew run --args="btc"
./gradlew run --args="eth eur"
@ -11,7 +11,7 @@ To compile & run the Kotlin example:
To compile & run the Java example:
```text
```console
./gradlew runJava
./gradlew runJava --args="btc"
./gradlew runJava --args="eth eur"

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"
}
defaultTasks(ApplicationPlugin.TASK_RUN_NAME)