title: Intellij not able to index gradle imported jar files, while code is compiling and running properly
body: <p>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).</p>
  
  <pre class="lang-kotlin prettyprint-override"><code>dependencies {
      // ...
      implementation(files("../konvironment-plugin/build/libs/konvironment-plugin-0.0.1-all.jar"))
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/j5Idl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j5Idl.png" alt="ScreenShot"></a></p>
  
  <p>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.</p>
  
  <p>I did <strong>Invalidate Caches and Restart</strong>, but it doesn't seem to have any effect.</p>
  
  <p>What could I do to aware the Intellij IDEA that the jar is right there (Jar is created from shadow plugin).</p>