Skip to content

Commit

Permalink
Adjust for breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
krzema12 committed Dec 16, 2024
1 parent 5281afe commit 8bf0964
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ fun configureGradleDaemonJvm(
) {
@Suppress("UnstableApiUsage")
updateDaemonJvm {
jvmVersion = gradleDaemonJvmVersion.map { JavaVersion.toVersion(it) }
jvmVersion.assign(gradleDaemonJvmVersion.map { JavaLanguageVersion.of(it.majorVersion) })

val javaToolchains = project.serviceOf<JavaToolchainService>()
val isGradleDaemonJvmVersionInstalled = gradleDaemonJvmVersion.isInstalled(javaToolchains)
val isGradleDaemonJvmVersionInstalled = gradleDaemonJvmVersion
.map { JavaVersion.toVersion(it) }
.isInstalled(javaToolchains)
inputs.property("isGradleDaemonJvmVersionInstalled", isGradleDaemonJvmVersionInstalled)
onlyIf { isGradleDaemonJvmVersionInstalled.get() }
}
Expand Down

0 comments on commit 8bf0964

Please sign in to comment.