Intellij not able to index gradle imported jar files, while code is compiling and running properly

Viewed 587

My application (Kotlin/JVM) is working as expected the code is compiled and ran. But unfortunately the Intellij IDEA is not able to index the libraries from a local jar, I have imported the library from the Kotlin gradle script (build.gradle.kts).

dependencies {
    // ...
    implementation(files("../konvironment-plugin/build/libs/konvironment-plugin-0.0.1-all.jar"))
}

ScreenShot

As you can see above application is running (in the bottom console), the library is there (at left) I can see no build errors, but the Intellij is not being able to detect classes and packages in the editor.

I did Invalidate Caches and Restart, but it doesn't seem to have any effect.

What could I do to aware the Intellij IDEA that the jar is right there (Jar is created from shadow plugin).

0 Answers
Related