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

Can't apply the BCV plugin to multimodule projects having the KMP applied only in sub-module #190

Open
fzhinkin opened this issue Feb 16, 2024 · 1 comment
Labels
bug Something isn't working gradle

Comments

@fzhinkin
Copy link
Collaborator

For a project having following structure:

root project: apply BCV plugin
  sub-project: apply kotlin-multiplatform plugin

tasks fails with:

* Exception is:
java.lang.NoClassDefFoundError: org/jetbrains/kotlin/gradle/dsl/KotlinMultiplatformExtension
        at kotlinx.validation.BinaryCompatibilityValidatorPlugin$configureMultiplatformPlugin$1.execute(BinaryCompatibilityValidatorPlugin.kt:57)
        at kotlinx.validation.BinaryCompatibilityValidatorPlugin$configureMultiplatformPlugin$1.execute(BinaryCompatibilityValidatorPlugin.kt:16)
        at kotlinx.validation.BinaryCompatibilityValidatorPlugin$configurePlugin$1.execute(BinaryCompatibilityValidatorPlugin.kt:49)
        at kotlinx.validation.BinaryCompatibilityValidatorPlugin$configurePlugin$1.execute(BinaryCompatibilityValidatorPlugin.kt:16)

There's no such an issue for Kotlin/JVM plugin applied to a sub-project.

@fzhinkin fzhinkin added the bug Something isn't working label Feb 16, 2024
@fzhinkin fzhinkin changed the title Can't apply the BCV plugin to the multimode projects having the KMP applied only in sub-module Can't apply the BCV plugin to the multimodule projects having the KMP applied only in sub-module Feb 16, 2024
@fzhinkin fzhinkin changed the title Can't apply the BCV plugin to the multimodule projects having the KMP applied only in sub-module Can't apply the BCV plugin to multimodule projects having the KMP applied only in sub-module Feb 16, 2024
fzhinkin added a commit to fzhinkin/bcv-190-repro that referenced this issue Feb 16, 2024
@fzhinkin
Copy link
Collaborator Author

Reproducer: https://github.com/fzhinkin/bcv-190-repro

@fzhinkin fzhinkin added the gradle label Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gradle
Projects
None yet
Development

No branches or pull requests

1 participant