title: SBT assembly jar exclusion
body: <p>Im using spark (in java API) and require a single jar that can be pushed to the cluster, however the jar itself should not include spark. The app that deploys the jobs of course should include spark.</p>
  
  <p>I would like:</p>
  
  <ol>
  <li>sbt run - everything should be compiled and excuted</li>
  <li>sbt smallAssembly - create a jar without spark</li>
  <li>sbt assembly - create an uber jar with everything (including spark) for ease of deployment.</li>
  </ol>
  
  <p>I have 1. and 3. working. Any ideas on how I can 2. ? What code would I need to add to my build.sbt file?</p>
  
  <p>The question is not relevant only to spark, but any other dependency that I may wish to exclude as well.</p>