Updated examples (Kotlin 1.5.31, JDK 1.8)
This commit is contained in:
parent
3d4824759e
commit
c0fc862bb4
70 changed files with 706 additions and 540 deletions
|
@ -1,7 +1,9 @@
|
|||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
plugins {
|
||||
id("application")
|
||||
id("com.github.ben-manes.versions") version "0.39.0"
|
||||
kotlin("jvm") version "1.5.21"
|
||||
kotlin("jvm") version "1.5.31"
|
||||
}
|
||||
|
||||
// ./gradlew run --args='https://erik.thauvin.net/ https://bit.ly/2PsNMAA'
|
||||
|
@ -22,7 +24,16 @@ application {
|
|||
mainClass.set("com.example.BitlyExampleKt")
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
tasks {
|
||||
withType<KotlinCompile>().configureEach {
|
||||
kotlinOptions.jvmTarget = java.targetCompatibility.toString()
|
||||
}
|
||||
|
||||
register("runJava", JavaExec::class) {
|
||||
group = "application"
|
||||
mainClass.set("com.example.BitlySample")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue