From f88affaceb6b4350e46e8a716eff67bd7c882853 Mon Sep 17 00:00:00 2001 From: Jolan Rensen Date: Mon, 8 Apr 2024 13:54:15 +0200 Subject: [PATCH] Removing dangerous exception in ConvenienceSchemaGeneratorPlugin --- .../dataframe/gradle/ConvenienceSchemaGeneratorPlugin.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/dataframe-gradle-plugin/src/main/kotlin/org/jetbrains/dataframe/gradle/ConvenienceSchemaGeneratorPlugin.kt b/plugins/dataframe-gradle-plugin/src/main/kotlin/org/jetbrains/dataframe/gradle/ConvenienceSchemaGeneratorPlugin.kt index 4d734e2f8..8f94cc9ca 100644 --- a/plugins/dataframe-gradle-plugin/src/main/kotlin/org/jetbrains/dataframe/gradle/ConvenienceSchemaGeneratorPlugin.kt +++ b/plugins/dataframe-gradle-plugin/src/main/kotlin/org/jetbrains/dataframe/gradle/ConvenienceSchemaGeneratorPlugin.kt @@ -34,7 +34,10 @@ class ConvenienceSchemaGeneratorPlugin : Plugin { when { target.plugins.hasPlugin("org.jetbrains.kotlin.jvm") -> false target.plugins.hasPlugin("org.jetbrains.kotlin.multiplatform") -> true - else -> throw Exception("Kotlin plugin must be applied first so we know whether to use multiplatform configurations or not") + else -> { + target.logger.warn("Kotlin plugin must be applied first so we know whether to use multiplatform configurations or not") + false + } } val mainKspCfg = if (isMultiplatform) "kspJvm" else "ksp" val testKspCfg = if (isMultiplatform) "kspJvmTest" else "kspTest"