# IDEA's Kotlin Plugin has issues when adding dependencies that has Kotlin shaded on it

**URL:** <https://discuss.kotlinlang.org/t/ideas-kotlin-plugin-has-issues-when-adding-dependencies-that-has-kotlin-shaded-on-it/8851>\
**Category:** Support\
**Created:** [August 2, 2018, 6:56pm UTC](https://discuss.kotlinlang.org/t/ideas-kotlin-plugin-has-issues-when-adding-dependencies-that-has-kotlin-shaded-on-it/8851 "2018-08-02T18:56:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrPowerGamerBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/mrpowergamerbr/32/5393_2.png) [@MrPowerGamerBR](https://discuss.kotlinlang.org/u/MrPowerGamerBR)\
**Post date:** [August 2, 2018, 6:56pm UTC](https://discuss.kotlinlang.org/t/ideas-kotlin-plugin-has-issues-when-adding-dependencies-that-has-kotlin-shaded-on-it/8851/1 "2018-08-02T18:56:38Z")

</div>

I think the title explains everything: If you have an dependency that has Kotlin shaded on it, adding the JAR to a project (as a dependency) causes the JAR to be simply ignored by IDEA (you can’t use Kotlin features and can’t use any of the classes in your dependency)

For context: What I always did (before 1.2) is having a “Core” dependency that has a bunch of utils classes and the Kotlin runtime, every other plugin depends on that core dependency.

But now, because IDEA doesn’t work with that dependency, I need to add the Kotlin runtime via classpath… While this fixes the issue, it is a regression on IDEA’s Kotlin plugin.

Compiling the project via Maven works fine.

---

<div class="post-metadata">

**Author:** ![MrPowerGamerBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/mrpowergamerbr/32/5393_2.png) [@MrPowerGamerBR](https://discuss.kotlinlang.org/u/MrPowerGamerBR)\
**Post date:** [August 3, 2018, 1:31am UTC](https://discuss.kotlinlang.org/t/ideas-kotlin-plugin-has-issues-when-adding-dependencies-that-has-kotlin-shaded-on-it/8851/2 "2018-08-03T01:31:20Z")

</div>

**Small update:** It seems this is an IDEA’s Kotlin Plugin issue regression that exists since 1.2.50: [https://youtrack.jetbrains.net/issue/KT-25709](https://youtrack.jetbrains.net/issue/KT-25709)
