title: Gradle task of project depend on task of other project
body: <p>I have an android project with two different apps.</p>
  
  <p>This is my current structure:</p>
  
  <pre><code>appA/
    buid.gradle
    ...
  appB/
    buid.gradle
    ...
  settings.gradle
  gradlew
  </code></pre>
  
  <p><em>settings.gradle</em> is the following:</p>
  
  <pre><code>include ':appA'
  include ':appB'
  </code></pre>
  
  <p>To test <em>appA</em>, <em>appB</em> needs to be installed on the emulator.</p>
  
  <p>Right now everything works if I first install both apps and then run <em>appA</em> tests</p>
  
  <pre><code>./gradlew installDebug              # install both apps apks
  ./gradlew connectedInstrumentTest   # runs tests on both apps (appB does not have any)
  </code></pre>
  
  <p>How can I explicitly say that <em>connecedInstrumentTest</em> of <em>appA</em> dependes on <em>installDebug</em> of <em>appB</em>? </p>