title: Depend on a project from another Gradle script
body: <p>I have the following folder structure:</p>
  
  <pre><code>projects
      build.gradle
      core/
      samples/
          sample1/
              build.gradle
              core/
              desktop/
              ios/
              html/
              android/
  </code></pre>
  
  <p>The <code>core</code> project is a Java library while <code>sample1</code> is a Libgdx application that wants to depend on <code>core</code>.</p>
  
  <p>The outermost build file is responsible for the <code>core</code> project as well as another project (not listed).</p>
  
  <p>The problem is that the Libgdx application also contains a <code>core</code> project, which hosts all the shared game logic. This is the template generated by the Libgdx project setup tool.</p>
  
  <p>How could I work around this in Gradle without renaming any of the projects?</p>