title: Gradle multiproject and lib jar directory
body: <p>I have a Gradle multi-project build and have to inlcude a JAR file which has to come from a lib directory.</p>
  
  <p>First I had the following structure:</p>
  
  <pre><code>- Directory "project"
    - Directory "sub project 1"
      - Directory "lib"
        - File "A.jar"
    - Directory "sub project 2"
  </code></pre>
  
  <p>And the following ´gradle.build´ (only an excerp) for "sub project 1":</p>
  
  <pre><code>repositories {
      flatDir {
          dirs 'lib'
      }
  }
  </code></pre>
  
  <p>When I compile "sub project 2" I get an error because A.jar cannot be resolved. To solve this I took the following approach:</p>
  
  <p>1: I moved the lib dir in the project root</p>
  
  <pre><code>- Directory "project"
    - Directory "sub project 1"
    - Directory "sub project 2"
    - Directory "lib"
      - File "A.jar"
  </code></pre>
  
  <p>2: I defined the lib dir in the ´gradle.build´ for "project" like</p>
  
  <pre><code>subprojects {
      repositories {
          flatDir {
              dirs '../lib'
          }
      }
  }
  </code></pre>
  
  <p>3: I removed the lib dir entry from the ´gradle.build´ for "sub project 1".</p>
  
  <p>Now the question: is this a reasonable approach or if not, what is the recommended way to solve this?</p>