Skip to content

Commit

Permalink
Merge pull request #655 from Kotlin/Jolanrensen-patch-1
Browse files Browse the repository at this point in the history
Removing dangerous exception in ConvenienceSchemaGeneratorPlugin
  • Loading branch information
Jolanrensen authored Apr 8, 2024
2 parents b2b575d + f88affa commit 312dd7d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ class ConvenienceSchemaGeneratorPlugin : Plugin<Project> {
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"
Expand Down

0 comments on commit 312dd7d

Please sign in to comment.