title: IntelliJ gradle add module dependency
body: <p>Using IntelliJ 2016.2.<br>
  Using Gradle 2.14.1</p>
  
  <p>I have 2 projects, each with their own build.gradle files and separate directory structures:</p>
  
  <pre><code>myLib (meant to be jarred and used by others)
    - build.gradle
    - settings.gradle
    - src/main/java/...
  
  sandbox (spring boot web app)
    - build.gradle
    - settings.gradle
    - src/main/java/...
    - src/main/resources/...
  </code></pre>
  
  <p>Hopefully, you get the picture. Within IntelliJ, I have the following module structure, at the same level (no subprojects):</p>
  
  <pre><code>- myLib
  - sandbox
  </code></pre>
  
  <p>Simple request ... I want to use <code>myLib</code> within the <code>sandbox</code> app. I want both modules in the same project in order to develop both.</p>
  
  <p>I've tried adding a module dependency to <code>sandbox</code> for <code>myLib</code> within IntelliJ. No dice. I've tried adding a jar reference, no dice.</p>
  
  <p>I believe I need to add a dependency in the build.gradle file but cannot figure out how. I've tried <code>compile files '&lt;path to myLib.jar&gt;'</code>, etc. No dice.</p>