Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apply ksp to multiplatform configs in multiplatform modules #647

Merged
merged 1 commit into from
Apr 6, 2024

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
2 checks passed
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