Skip to content

Commit 312dd7d

Browse files
authored
Merge pull request #655 from Kotlin/Jolanrensen-patch-1
Removing dangerous exception in ConvenienceSchemaGeneratorPlugin
2 parents b2b575d + f88affa commit 312dd7d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugins/dataframe-gradle-plugin/src/main/kotlin/org/jetbrains/dataframe/gradle/ConvenienceSchemaGeneratorPlugin.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ class ConvenienceSchemaGeneratorPlugin : Plugin<Project> {
3434
when {
3535
target.plugins.hasPlugin("org.jetbrains.kotlin.jvm") -> false
3636
target.plugins.hasPlugin("org.jetbrains.kotlin.multiplatform") -> true
37-
else -> throw Exception("Kotlin plugin must be applied first so we know whether to use multiplatform configurations or not")
37+
else -> {
38+
target.logger.warn("Kotlin plugin must be applied first so we know whether to use multiplatform configurations or not")
39+
false
40+
}
3841
}
3942
val mainKspCfg = if (isMultiplatform) "kspJvm" else "ksp"
4043
val testKspCfg = if (isMultiplatform) "kspJvmTest" else "kspTest"

0 commit comments

Comments
 (0)