title: Gradle subproject setup, git submodules
body: <p>I have a gradle (libgdx) project with the following modules</p>
  
  <pre><code>- :core
  - :a
  - :b
  </code></pre>
  
  <p>I'm also including libraries locally as source, to modify them and because they're loosely tied to the project. These projects each have their own structure much like the one for the root project. The final project structure looks like this:</p>
  
  <pre><code> - :core
   - :a
   - :b
   - :libA:core
   - :libA:a
   - :libA:b
   - :libB:core
   - :libB:a
   - :libB:b
  </code></pre>
  
  <p>My question is now, how do I correctly set it up so that i can use <code>project(':core')</code> as project dependencies inside of the nested library projects, and still refer to not the <code>:core</code> of the root project but to the respective library core modules?
  I do not want to modify the dependencies to be like <code>project(':libA:core')</code> because that would break the library projects in their standalone form.</p>