title: How to specify Scala and SBT version for publish-local?
body: <p>I'm developing a SBT compiler plugin with Scala 2.9.2 and SBT 0.12.0.</p>
  
  <p>My project uses the following <code>build.sbt</code>:</p>
  
  <pre><code>name := "myplugin"
  
  version := "0.1-SNAPSHOT"
  
  scalaVersion := "2.9.2"
  
  organization := "com.my.org"
  
  sbtVersion := "0.12.0"
  
  libraryDependencies += "org.scala-lang" % "scala-compiler" % "2.9.2"
  </code></pre>
  
  <p>After writing the plugin I'm publishing it to my local Ivy repository using <code>publish-local</code> that publishes to <code>~\.ivy2\local\com.my.org\myplugin\0.1-SNAPSHOT</code>.</p>
  
  <p>To test the plugin, I've created a simple "Hello-World" project and added the following  <code>project/build.sbt</code> file:</p>
  
  <pre><code>addSbtPlugin("com.my.org" %% "myplugin" % "0.1-SNAPSHOT")
  </code></pre>
  
  <p>When trying to load the project using <code>sbt</code> I get an <code>Unresolved Dependency</code> error for that plugin. I noticed that <code>sbt</code> looks for the plugin in <code>~\.ivy2\local\com.my.org\myplugin\scala_2.9.2\sbt_0.12\0.1-SNAPSHOT</code>.</p>
  
  <p>My question is how do I correct the configuration to include the Scala and SBT versions? Or, alternately, how do I resolve the plugin resolution to look in the right place?</p>