title: Override a version of transitive dependency in sbt
body: <p>I have a requirement to override a transitive dependency to a later version of the same.</p>
  
  <p>In maven I can do this by simply adding the overriding one on top.</p>
  
  <pre><code>  &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
        &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
        &lt;version&gt;2.8.9&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
        &lt;artifactId&gt;jackson-annotations&lt;/artifactId&gt;
        &lt;version&gt;2.8.9&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.fasterxml.jackson.module&lt;/groupId&gt;
        &lt;artifactId&gt;jackson-module-scala_2.11&lt;/artifactId&gt;
        &lt;version&gt;2.8.9&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
        &lt;artifactId&gt;spark-core_${scala.version.dist}&lt;/artifactId&gt;
        &lt;version&gt;${spark.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.mypackage.road&lt;/groupId&gt;
        &lt;artifactId&gt;package-that-contains-transitive-deps&lt;/artifactId&gt;
        &lt;version&gt;4.2.0&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>How can i do this in sbt? Also like the GUI that is available in maven (Dependency-Hierarchy tab) which shows which jars are overriding the others, how can i see that in sbt?</p>
  
  <p>I have already tried to force the versions I want using dependencyOverrides. But the issue is still there.So how can I check that the older version is exactly evicted by the version I am overriding. sbt dependencyTree is not showing that the newer one has evicted the transitive dependency.</p>