Skip to content

Conversation

@mgroth0
Copy link
Contributor

@mgroth0 mgroth0 commented Apr 5, 2024

Fixes #645

@Jolanrensen
Copy link
Collaborator

Jolanrensen commented Apr 6, 2024

Looks like you improved my old PR #592 :) thanks! I'll run the tests and check if it can be merged

@Jolanrensen Jolanrensen added this to the 0.14.0 milestone Apr 6, 2024
@Jolanrensen Jolanrensen merged commit 59be77c into Kotlin:master Apr 6, 2024
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")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, this exception might be dangerous, since we don't know all possible configurations users might have. We should default to false probably. Fixing it in #655

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Kotlin Multiplatform Plugin for JVM only

2 participants