title: Extracting External JAR's Version & Adding to SBT
body: <p>Given a JAR, namely <code>ojdbc6.jar</code> from <a href="http://www.oracle.com/technetwork/apps-tech/jdbc-112010-090769.html" rel="nofollow noreferrer">Oracle</a>, I tried to add it as an external JAR to my SBT project.</p>
  
  <p>Note -I'm using this project as a sandbox, which explains the external JAR approach.</p>
  
  <p>First, I copied it to my <code>$SBT_HOME/lib</code> directory, per this <a href="https://stackoverflow.com/a/25129521/409976">answer</a> to use unmanaged JARs.</p>
  
  <p>To determine the version of the JAR, i.e. the third argument of the <code>libraryDependency</code>, I ran:</p>
  
  <pre><code>$unzip ojdbc6.jar 
  $cat ./META-INF/MANIFEST.MF 
  Manifest-Version: 1.0
  Ant-Version: Apache Ant 1.6.5
  Created-By: 1.5.0_51-b10 (Sun Microsystems Inc.)
  Implementation-Vendor: Oracle Corporation
  Implementation-Title: JDBC
  Implementation-Version: 11.2.0.4.0
  </code></pre>
  
  <p>So, then I updated my <code>build.sbt</code> with:</p>
  
  <pre><code>libraryDependencies ++= Seq(
    "com.oracle.jdbc"   % "ojdbc6" % "11.2.0.4.0"
  )
  </code></pre>
  
  <p>But, upon running <code>sbt run</code>, I see:</p>
  
  <pre><code>[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
  [warn]  ::          UNRESOLVED DEPENDENCIES         ::
  [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
  [warn]  :: com.oracle.jdbc#ojdbc6;11.2.0.4.0: not found
  [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
  </code></pre>
  
  <p>How can I add this JAR to my SBT project as an external dependency?</p>