title: Having difficulty setting up Gradle multiproject build for existing repository layout
body: <p>I'm trying to craft a Gradle multiproject build for a situation in which my project layout is already dictated to me. I have something like this:</p>
  
  <pre><code>--&gt;Shared\
  ----&gt;SharedComponent1\
  ------&gt;build.gradle
  ------&gt;src\
  ...
  ----&gt;SharedComponent2\
  ------&gt;build.gradle
  ...
  --&gt;Product1\
  ----&gt;ProductComponent1\
  ------&gt;build.gradle
  ----&gt;ProductComponent2\
  ------&gt;build.gradle
  ...
  ----&gt;build\
  ------&gt;settings.gradle
  </code></pre>
  
  <p>My settings.gradle looks like this:</p>
  
  <pre><code>rootProject.name = 'Product1'
  rootProject.projectDir = new File( "${ProjectsRoot}" )
  
  include 'Shared:SharedComponent1'
  include 'Shared:SharedComponent2'
  include 'Product1:ProductComponent1'
  include 'Product1:ProductComponent2'
  </code></pre>
  
  <p>When I run Gradle in the build folder like this:</p>
  
  <pre><code>gradle -PProjectsRoot=c:\my\project\root\dir projects
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>:projects
  
  ------------------------------------------------------------
  Root project
  ------------------------------------------------------------
  
  Root project 'build'
  No sub-projects
  
  To see a list of the tasks of a project, run gradle &lt;project-path&gt;:tasks
  For example, try running gradle :tasks
  
  BUILD SUCCESSFUL
  </code></pre>
  
  <p>i.e. it doesn't find the projects I'm trying to build.
  Is what I'm trying to do possible with Gradle's multiproject support? Or am I barking up the wrong tree?</p>