title: Exclude test dependency resolution from `sbt compile`
body: <p>When running <code>sbt compile</code>, dependencies marked as <code>test</code> are still resolved even though they are not later included later in compilation. It seems like this should only happen during the <code>test:compile</code> task. Is there a way to exclude <code>test</code> dependencies from being resolved and downloaded during the <code>compile</code> task? </p>
  
  <p>Here is an example with the <code>org.mockito#mockito-all</code> dependency. I have it declared as test-only:</p>
  
  <pre><code>"org.mockito" %  "mockito-all" % "1.9.0" % "test"
  </code></pre>
  
  <p>However, when (clearing it from my local Ivy cache and) running <code>sbt compile</code>, it gets needlessly downloaded:</p>
  
  <p><code>
  $ sbt compile
  [info] Loading global plugins from /Users/rbrainard/.sbt/plugins
  [info] Loading project definition from /Users/rbrainard/Development/spitball/project
  [info] Set current project to spitball (in build file:/Users/rbrainard/Development/spitball/)
  [info] Updating {file:/Users/rbrainard/Development/spitball/}spitball...
  [info] Resolving org.mockito#mockito-all;1.9.0 ...
  [info] downloading http://repo1.maven.org/maven2/org/mockito/mockito-all/1.9.0/mockito-all-1.9.0.jar ...
  [info]  [SUCCESSFUL ] org.mockito#mockito-all;1.9.0!mockito-all.jar (2075ms)
  [info] Done updating.
  [success] Total time: 7 s, completed May 28, 2014 4:51:20 PM
  </code></p>