Skip to content

Commit

Permalink
Remove unnecessary conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
StefMa committed Apr 3, 2024
1 parent 5b2e95b commit 8338c17
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions buildSrc/src/main/kotlin/JvmToolchain.kt
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import org.gradle.jvm.toolchain.JavaLanguageVersion
import org.gradle.jvm.toolchain.JvmVendorSpec
import org.gradle.api.Project

private const val JDK_VERSION = 11

val jvmToolchainVersion: JavaLanguageVersion
get() {
val jvmVersion = System.getProperty("PKL_JVM_VERSION", JDK_VERSION.toString()).toInt()
val jvmVersion = System.getProperty("PKL_JVM_VERSION")?.toInt() ?: JDK_VERSION
return JavaLanguageVersion.of(jvmVersion)
}

val jvmToolchainVendor: JvmVendorSpec
get() = JvmVendorSpec.ADOPTIUM
get() = JvmVendorSpec.ADOPTIUM

0 comments on commit 8338c17

Please sign in to comment.