title: Gradle task doesn't execute in Android Studio
body: <p>I've tried to get a gradle task to execute for a lib module 'lib1' in an Android Studio project. It should run with command 'gradlew assembleDebug' or 'gradlew assemble' but it never runs.</p>
  
  <pre><code>task copy(type: Copy, dependsOn: ':lib1:assembleDebug') &lt;&lt; {
    println "copying"
  }
  </code></pre>
  
  <p>I tried a simpler task with no dependency and it never seems to run either.</p>
  
  <pre><code>task hello &lt;&lt; {
    println 'hello world'
  }
  </code></pre>
  
  <p>This runs but it's only in the configuration phase.</p>
  
  <pre><code>task hello {
    println 'hello world'
  }
  </code></pre>
  
  <p>I need to get a copy to work in the execution phase after the library module assembled. Any clues what to do?</p>