use `scalaVersion in update` to lookup report file

This will help if you use the common

   scalaVersion := "2.9.2"

   scalaVersion in update := "2.9.1"

idiom.
This commit is contained in:
Johannes Rudolph 2012-05-20 18:21:17 +02:00
parent 6722536991
commit be22b8c663
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ object Plugin extends sbt.Plugin {
"A task which returns the location of the ivy report file for a given configuration (default `compile`).")
def graphSettings = Seq(
ivyReportF <<= (projectID, scalaVersion, appConfiguration) { (projectID, scalaVersion, config) =>
ivyReportF <<= (projectID, scalaVersion in update, appConfiguration) { (projectID, scalaVersion, config) =>
val home = config.provider.scalaProvider.launcher.ivyHome
(c: String) => file("%s/cache/%s-%s-%s.xml" format (home, projectID.organization, crossName(projectID, scalaVersion), c))
},