What causes JAR files to appear empty to IntelliJ IDEA?
<p>IntelliJ occasionally thinks a gradle managed JAR file dependency is empty. No combination of replacing the JAR on disk, synchronizing, restarting, or clearing IntelliJ caches resolves the issue, so I believe it doesn't like something about the JAR file itself.</p>

<p>In the project tree:</p>

<p><a href="https://i.stack.imgur.com/ssn4Z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ssn4Z.png" alt="enter image description here"></a></p>

<p>As you would expect, imports from the JAR's packages fail.</p>

<p>Yet, the JAR files are not empty, and compilations outside of the IntelliJ tool chain work fine.</p>

<p>Does IntelliJ have some strict requirement about JAR contents, formatting, or encoding which may be causing this?</p>