title: How to configure Gradle to not run other tasks when running 'gradle test'
body: <p>I have a build.gradle file that contains the following task, as well as the Java plugin, Appengine plugin, and Jetty plugin:</p>
  
  <pre><code>task(copyTestDeps, type: Copy)  {
    from configurations.testRuntime - configurations.runtime
    into 'test-lib'
    def deps = configurations.testRuntime - configurations.runtime
    println '\nAdd these to your classpath from the \'test-lib\' folder: \n' 
    deps.each { println "test-lib/" + it.getName() }
    println '\n'
  }
  </code></pre>
  
  <p>When I run <code>gradle test</code>, the tests are run and all code is compiled, but this task defined above also runs.  </p>
  
  <p>I do not want that task to run, at least not in the beginning but instead at the end, but I'm struggling to see how to tell gradle test to just plain not run this task, as I may end up writing other tasks that I don't want gradle test to run.</p>
  
  <p>I've looked through the documentation for the Java plugin, but I don't see anything in there that would effectively disable this behavior.  </p>
  
  <p>How would I configure gradle so that this copyTestDeps task does not run unless I explicitly run <code>gradle copyTestDeps</code> from the terminal?  I assume that the documented "doLast" method would work properly in making this run, so let's just focus on stopping <code>gradle test</code> from pretending like it owns everything. </p>