Bumped Kotlin to version 2.0.0

This commit is contained in:
Erik C. Thauvin 2024-05-25 12:07:00 -07:00
parent 325ef292bf
commit e0ed72d8a2
Signed by: erik
GPG key ID: 776702A6A2DA330E
8 changed files with 219 additions and 26 deletions

View file

@ -1,6 +1,6 @@
bld.downloadExtensionJavadoc=false
bld.downloadExtensionSources=true
bld.extensions=com.uwyn.rife2:bld-kotlin:0.9.4
bld.extensions=com.uwyn.rife2:bld-kotlin:0.9.7
bld.repositories=MAVEN_LOCAL,MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
bld.downloadLocation=
bld.sourceDirectories=

View file

@ -3,7 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("application")
id("com.github.ben-manes.versions") version "0.51.0"
kotlin("jvm") version "1.9.24"
kotlin("jvm") version "2.0.0"
}
defaultTasks(ApplicationPlugin.TASK_RUN_NAME)
@ -28,11 +28,11 @@ application {
mainClass.set("com.example.CryptoPriceExampleKt")
}
tasks {
withType<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = java.targetCompatibility.toString()
}
kotlin {
compilerOptions.jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11)
}
tasks {
register<JavaExec>("runJava") {
group = "application"
mainClass.set("com.example.CryptoPriceSample")