From b9c2f080d9b4a0b95bdf517e7850533d1145c354 Mon Sep 17 00:00:00 2001 From: Tad Fisher Date: Tue, 16 Mar 2021 13:17:36 -0700 Subject: [PATCH] Fix task validation errors --- .../tasks/AbstractCheckNativeDistributionRuntime.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractCheckNativeDistributionRuntime.kt b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractCheckNativeDistributionRuntime.kt index b4e77d06ac..32016973ad 100644 --- a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractCheckNativeDistributionRuntime.kt +++ b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractCheckNativeDistributionRuntime.kt @@ -16,7 +16,6 @@ private const val MIN_JAVA_RUNTIME_VERSION = 15 @CacheableTask abstract class AbstractCheckNativeDistributionRuntime : AbstractComposeDesktopTask() { - @get:PathSensitive(PathSensitivity.ABSOLUTE) @get:Input val javaHome: Property = objects.notNullProperty() @@ -26,11 +25,9 @@ abstract class AbstractCheckNativeDistributionRuntime : AbstractComposeDesktopTa @get:LocalState val workingDir: Provider = project.layout.buildDirectory.dir("compose/tmp/$name") - @get:Internal private val javaExec: File get() = getTool("java") - @get:Internal private val javacExec: File get() = getTool("javac") @@ -108,7 +105,7 @@ abstract class AbstractCheckNativeDistributionRuntime : AbstractComposeDesktopTa printVersionAndHalt(System.getProperty("java.version")); } } - + private static void printVersionAndHalt(String version) { System.out.println("$javaVersionPrefix" + version + "$javaVersionSuffix"); Runtime.getRuntime().exit(0);