title: Gradle disable the build of dependency projects
body: <p>I have a a multi-project gradle project (Android) with following structure:</p>
  
  <pre><code>root
  |-projA
  |-projB
  |-projC
  |-...
  </code></pre>
  
  <p>In my specific case, <code>projA</code> is an app which uses <code>projB</code> (module). When I run <code>build</code> on <code>projA</code>, <code>projB</code> also gets built. I need to perform an action only on the project that was originally built (the project where the original action was performed on).</p>
  
  <p>For this purpose I need to somehow get the name/path of this project. I need to do this in the <code>afterEvaluate</code> step if this matters.</p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>gradlew :projA:build   // Builds A and B     -&gt;  I want only "projA"
  gradlew :projB:build   // Builds B           -&gt;  I want "projB"
  gradlew :projC:build   // Builds A, B and C  -&gt;  I want only "projC"
  </code></pre>
  
  <p>I am not sure how I can achive this, I hope someone of you can help me.</p>