From c1aa3a33ca39626861fdf219a5014c57e63a5dfa Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 4 May 2021 18:42:48 +0530 Subject: [PATCH] gradle-plugins/compose: Don't eagerly evaluate web platform Signed-off-by: Harsh Shandilya --- .../src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt index f5c6c5ae88..b714a5be7f 100644 --- a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt +++ b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt @@ -116,7 +116,7 @@ class ComposePlugin : Plugin { val runtime get() = composeDependency("org.jetbrains.compose.runtime:runtime") val ui get() = composeDependency("org.jetbrains.compose.ui:ui") val materialIconsExtended get() = composeDependency("org.jetbrains.compose.material:material-icons-extended") - val web: WebDependencies = + val web: WebDependencies get() = if (ComposeBuildConfig.isComposeWithWeb) WebDependencies else error("This version of Compose plugin does not support 'compose.web.*' dependencies") }