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

Exclude kotlin-runtime from the dependencies loaded from IDEA lib directory #57

Closed
yole opened this issue Dec 31, 2015 · 4 comments
Closed
Assignees
Milestone

Comments

@yole
Copy link
Contributor

yole commented Dec 31, 2015

If a plugin is built with Kotlin, it usually uses its own Kotlin runtime library, specified as a separate dependency in build.gradle. This dependency may conflict with the Kotlin runtime which is bundled with IDEA and shipped in the 'lib' directory, so there should be an option to exclude the bundled Kotlin runtime from the classpath.

@alexeykudinkin
Copy link

👍

@zolotov zolotov added this to the 0.0.36 milestone Jan 3, 2016
@zolotov zolotov self-assigned this Jan 3, 2016
@zolotov zolotov closed this as completed in 915b220 Jan 3, 2016
@zolotov
Copy link
Member

zolotov commented Jan 4, 2016

Please try 0.0.36, kotlin-runtime.jar should be excluded from classpath for any project that has explicit kotlin-runtime dependency

@alexeykudinkin
Copy link

Yep, works now, thanks!

@ingokegel
Copy link

Why only for explicit dependencies and not for transitive dependencies? In Kotlin 1.1 it is an error to have a language level mismatch between two Kotlin libraries on the classpath. It's easy enough to add an explicit Kotlin dependency to the project, but it would be less confusing if this would work for a transitive Kotlin dependency as well.

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

No branches or pull requests

4 participants