title: Problem adding dependencies to my first Java11 module using IntelliJ and gradle
body: <p>I am finally learning Java 9+ modules, and I want to migrate some of my old 1.8 projects.</p>
  
  <p>I started simple and created a standard IntelliJ project, and I created this:</p>
  
  <pre><code>src
  |__main
     |__java
        |__myfirst.module
           |__Util.java
        |__module-info.java
  </code></pre>
  
  <p>Here is module-info.java</p>
  
  <pre><code>module myfirst.module {
    requires org.apache.commons.lang3;
    exports myfirst.module;
  }
  </code></pre>
  
  <p>and here is Util.java</p>
  
  <pre><code>package myfirst.module;
  
  import org.apache.commons.lang3.math.NumberUtils;
  
  public class Util {
      public static void main(String[] args) {
         System.out.println("Bonjour"+ NumberUtils.isCreatable("Bonjoru"));
      }
  }
  </code></pre>
  
  <p>And the build.gradle</p>
  
  <pre><code>plugins {
      id 'java'
  }
  
  group 'org.example'
  version '1.0-SNAPSHOT'
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      implementation 'org.apache.commons:commons-lang3:3.10'
  
      testCompile group: 'junit', name: 'junit', version: '4.12'
  }
  </code></pre>
  
  <p>But when running gradle's jar task, I get the following error:</p>
  
  <pre><code>src/main/java/module-info.java:2: error: module not found: org.apache.commons.lang3
      requires org.apache.commons.lang3;
  </code></pre>
  
  <p>Can someone explain me why?</p>
  
  <p>Thanks.</p>