title: IntelliJ doesn't recognize class of gradle dependency
body: <p>I have the following problem. I added the AnimateFX dependency via &quot;Dependencies&quot; tab in IntelliJ IDEA when I try to use one of the classes, it won't recognize it. Intellisense wont't list it either.</p>
  <p><a href="https://i.stack.imgur.com/3Znsi.png" rel="nofollow noreferrer">IntelliJ Screen Shot</a></p>
  <p>Does anyone have an idea, what the actual problem here is?</p>
  <p>To reproduce:</p>
  <ol>
  <li>Create new JavaFX project via <em>File</em> - <em>New</em> - <em>Project...</em> choose <em>Gradle</em> as <em>Build System</em> and <em>jdk-15</em>(I downloaded it via IntelliJ) as <em>Project SDK</em>:
  <a href="https://i.stack.imgur.com/L4xnx.png" rel="nofollow noreferrer">Project Setup</a></li>
  <li>Click <em>Next</em>, don't add any dependencies shown in the following dailog: <a href="https://i.stack.imgur.com/Yvobr.png" rel="nofollow noreferrer">Dependencies Setup</a></li>
  <li>Click <em>Finish</em></li>
  <li>After project configuration is finished, open <em>gradle.build</em> and add the following implementation statement to <em>dependencies</em></li>
  </ol>
  <blockquote>
  <p><em>implementation 'io.github.typhon0:AnimateFX:1.2.1'</em></p>
  </blockquote>
  <ol start="5">
  <li>Load gradle changes</li>
  <li>Go to a .java class file that is in the <em>src</em> folder and try to use any class of the AnimateFX dependency, e.g.:</li>
  </ol>
  <blockquote>
  <p>FadeIn fadeInTransition = new FadeIn(anyNode);</p>
  </blockquote>
  <p>IntelliJ should now give an error stating the following: <a href="https://i.stack.imgur.com/P0SO3.png" rel="nofollow noreferrer">Error</a></p>
  <p>IntelliJ version: IntelliJ IDEA 2021.2.2 (Community Edition) - Build #IC-212.5284.40</p>
  <p>Gradle version: 7.1.1</p>
  <p>Also, this is the content of my gradle.build:</p>
  <pre><code>plugins {
      id 'java'
      id 'application'
      id 'org.openjfx.javafxplugin' version '0.0.10'
  }
  
  group 'de.mwllpr'
  version '1.0-SNAPSHOT'
  
  repositories {
      mavenCentral()
  }
  
  sourceCompatibility = '15'
  targetCompatibility = '15'
  
  tasks.withType(JavaCompile) {
      options.encoding = 'UTF-8'
  }
  
  application {
      mainModule = 'de.mwllpr.application'
      mainClass = 'de.mwllpr.application.GameApplication'
  }
  
  javafx {
      version = '15.0.1'
      modules = ['javafx.controls', 'javafx.fxml']
  }
  
  dependencies {
      implementation 'org.apache.logging.log4j:log4j-core:2.14.1'
      implementation 'io.github.typhon0:AnimateFX:1.2.1'
      testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
      testImplementation 'org.mockito:mockito-core:3.12.4'
      testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
  }
  
  test {
      useJUnitPlatform()
  }
  </code></pre>
  <p>and module-info.java:</p>
  <pre><code>module de.mwllpr.application {
      requires javafx.controls;
      requires javafx.fxml;
      requires org.apache.logging.log4j.core;
      requires org.apache.logging.log4j;
  
      opens de.mwllpr.application to javafx.fxml;
      exports de.mwllpr.application;
  }
  </code></pre>
  <p>Zipped demo project: <a href="http://www.filedropper.com/demofx" rel="nofollow noreferrer">http://www.filedropper.com/demofx</a></p>