mirror of https://github.com/sbt/sbt.git
remove support for sbt 0.11 + 0.12
This commit is contained in:
parent
827a896e3c
commit
7b0e090662
|
|
@ -1,6 +1,6 @@
|
|||
crossBuildingSettings
|
||||
|
||||
CrossBuilding.crossSbtVersions := Seq("0.11.1", "0.11.2", "0.11.3", "0.12", "0.13")
|
||||
CrossBuilding.crossSbtVersions := Seq("0.13")
|
||||
|
||||
CrossBuilding.scriptedSettings
|
||||
|
||||
|
|
@ -17,3 +17,10 @@ libraryDependencies <+= scalaVersion { version =>
|
|||
}
|
||||
|
||||
scalacOptions ++= Seq("-deprecation", "-unchecked")
|
||||
|
||||
sbt.CrossBuilding.latestCompatibleVersionMapper ~= {
|
||||
original => {
|
||||
case "0.13" => "0.13.8"
|
||||
case x => original(x)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,22 +0,0 @@
|
|||
package sbt
|
||||
|
||||
import net.virtualvoid.sbt.graph.Plugin._
|
||||
import Keys._
|
||||
|
||||
object SbtDependencyGraphCompat {
|
||||
/**
|
||||
* This is copied directly from sbt/main/Defaults.java and then changed to update the UpdateConfiguration
|
||||
* to ignore missing artifacts.
|
||||
*/
|
||||
def ignoreMissingUpdateT =
|
||||
ignoreMissingUpdate <<= (ivyModule, thisProjectRef, updateConfiguration in ignoreMissingUpdate, cacheDirectory, scalaInstance, transitiveUpdate, streams) map { (module, ref, config, cacheDirectory, si, reports, s) =>
|
||||
val depsUpdated = reports.exists(!_.stats.cached)
|
||||
|
||||
Classpaths.cachedUpdate(cacheDirectory / "update", Project.display(ref), module, config, Some(si), depsUpdated, s.log)
|
||||
}
|
||||
|
||||
import complete.DefaultParsers._
|
||||
lazy val StringBasic = NotSpaceClass.*.string
|
||||
|
||||
def getTerminalWidth: Int = jline.Terminal.getTerminal.getTerminalWidth
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
package sbt
|
||||
|
||||
import net.virtualvoid.sbt.graph.Plugin._
|
||||
import Keys._
|
||||
|
||||
object SbtDependencyGraphCompat {
|
||||
/**
|
||||
* This is copied directly from sbt/main/Defaults.java and then changed to update the UpdateConfiguration
|
||||
* to ignore missing artifacts.
|
||||
*/
|
||||
def ignoreMissingUpdateT =
|
||||
ignoreMissingUpdate <<= (ivyModule, thisProjectRef, updateConfiguration in ignoreMissingUpdate, cacheDirectory, scalaInstance, transitiveUpdate, executionRoots, resolvedScoped, skip in update, streams) map {
|
||||
(module, ref, config, cacheDirectory, si, reports, roots, resolved, skip, s) =>
|
||||
val depsUpdated = reports.exists(!_.stats.cached)
|
||||
val isRoot = roots contains resolved
|
||||
|
||||
Classpaths.cachedUpdate(cacheDirectory / "update", Project.display(ref), module, config, Some(si), skip = skip, force = isRoot, depsUpdated = depsUpdated, log = s.log)
|
||||
} tag(Tags.Update, Tags.Network)
|
||||
|
||||
def getTerminalWidth: Int = JLine.usingTerminal(_.getTerminalWidth)
|
||||
}
|
||||
Loading…
Reference in New Issue