mirror of https://github.com/sbt/sbt.git
Fix Scala version checking done for dependency declarations
This commit is contained in:
parent
293730d11b
commit
72c1e72426
|
|
@ -101,7 +101,7 @@ trait ManagedProject extends ClasspathProject
|
||||||
case ErrorIfNoConfiguration => errorIfNoConfiguration = true
|
case ErrorIfNoConfiguration => errorIfNoConfiguration = true
|
||||||
case CacheDirectory(dir) => cacheDirectory = Some(dir)
|
case CacheDirectory(dir) => cacheDirectory = Some(dir)
|
||||||
case CheckScalaVersion(configs, checkExplicit, filterImplicit) =>
|
case CheckScalaVersion(configs, checkExplicit, filterImplicit) =>
|
||||||
checkScalaVersion = getScalaVersion.map(version => new IvyScala(version, configs, checkExplicit, filterImplicit))
|
checkScalaVersion = Some(new IvyScala(buildScalaVersion, configs, checkExplicit, filterImplicit))
|
||||||
case _ => log.warn("Ignored unknown managed option " + option)
|
case _ => log.warn("Ignored unknown managed option " + option)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -111,12 +111,6 @@ trait ManagedProject extends ClasspathProject
|
||||||
val updateConfiguration = new UpdateConfiguration(outputPattern, synchronize, quiet)
|
val updateConfiguration = new UpdateConfiguration(outputPattern, synchronize, quiet)
|
||||||
doWith(ivyConfiguration, updateConfiguration)
|
doWith(ivyConfiguration, updateConfiguration)
|
||||||
}
|
}
|
||||||
private def getScalaVersion =
|
|
||||||
{
|
|
||||||
val v = scalaVersion.value
|
|
||||||
if(v.isEmpty) None
|
|
||||||
else Some(v)
|
|
||||||
}
|
|
||||||
protected def withIvyTask(doTask: => Option[String]) =
|
protected def withIvyTask(doTask: => Option[String]) =
|
||||||
task
|
task
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue