Upgraded to Kotlin 1.9.21
This commit is contained in:
parent
efc0e4954b
commit
fad1d06b96
7 changed files with 30 additions and 36 deletions
|
@ -1,7 +1,7 @@
|
|||
## Kotlin Example
|
||||
To compile & run the Kotlin example:
|
||||
|
||||
```text
|
||||
```console
|
||||
./bld compile
|
||||
|
||||
|
||||
|
@ -14,7 +14,7 @@ To compile & run the Kotlin example:
|
|||
cd
|
||||
To compile & run the Java example:
|
||||
|
||||
```text
|
||||
```console
|
||||
./bld compile
|
||||
|
||||
./bld run-java --args='https://erik.thauvin.net/ https://bit.ly/2PsNMAA'
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
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;
|
||||
|
@ -37,11 +35,6 @@ public class ExampleBuild 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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
## Kotlin Example
|
||||
To compile & run the Kotlin example:
|
||||
|
||||
```text
|
||||
```console
|
||||
./gradlew run --args='https://erik.thauvin.net/ https://bit.ly/2PsNMAA'
|
||||
./gradlew runRetrieve
|
||||
```
|
||||
|
@ -10,6 +10,6 @@ To compile & run the Kotlin example:
|
|||
|
||||
To compile & run the Java example:
|
||||
|
||||
```text
|
||||
```console
|
||||
./gradlew runJava --args='https://erik.thauvin.net/ https://bit.ly/2PsNMAA'
|
||||
```
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
||||
// ./gradlew run --args='https://erik.thauvin.net/ https://bit.ly/2PsNMAA'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue