Merge pull request #5077 from eed3si9n/bport/2.12.10

[1.3.x] lm-coursier-shaded 2.0.0-RC3-4 + Scala 2.12.10
This commit is contained in:
eugene yokota 2019-09-13 11:44:37 -04:00 committed by GitHub
commit 28590b76ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
106 changed files with 149 additions and 144 deletions

View File

@ -74,7 +74,7 @@ object KListBuilder extends TupleBuilder {
* The type constructor is tcVariable, so that it can be applied to [X] X or M later.
* When applied to `M`, this type gives the type of the `input` KList.
*/
val klistType: Type = (inputs :\ knilType)((in, klist) => kconsType(in.tpe, klist))
val klistType: Type = inputs.foldRight(knilType)((in, klist) => kconsType(in.tpe, klist))
val representationC = internal.polyType(tcVariable :: Nil, klistType)
val input = klist

View File

@ -48,7 +48,7 @@ object AList {
def seq[T]: SeqList[T] = new SeqList[T] {
def transform[M[_], N[_]](s: List[M[T]], f: M ~> N) = s.map(f.fn[T])
def foldr[M[_], A](s: List[M[T]], f: (M[_], A) => A, init: A): A =
(init /: s.reverse)((t, m) => f(m, t))
s.reverse.foldLeft(init)((t, m) => f(m, t))
override def apply[M[_], C](s: List[M[T]], f: List[T] => C)(
implicit ap: Applicative[M]

View File

@ -36,5 +36,5 @@ final case class HCons[H, T <: HList](head: H, tail: T) extends HList {
object HList {
// contains no type information: not even A
implicit def fromList[A](list: Traversable[A]): HList =
((HNil: HList) /: list)((hl, v) => HCons(v, hl))
list.foldLeft(HNil: HList)((hl, v) => HCons(v, hl))
}

View File

@ -77,7 +77,7 @@ abstract class EvaluateSettings[ScopeType] {
}
private[this] def getResults(implicit delegates: ScopeType => Seq[ScopeType]) =
(empty /: static.toTypedSeq) {
static.toTypedSeq.foldLeft(empty) {
case (ss, static.TPair(key, node)) =>
if (key.key.isLocal) ss else ss.set(key.scope, key.key, node.get)
}

View File

@ -225,7 +225,7 @@ trait Init[ScopeType] {
}.toMap
def grouped(init: Seq[Setting[_]]): ScopedMap =
((IMap.empty: ScopedMap) /: init)((m, s) => add(m, s))
init.foldLeft(IMap.empty: ScopedMap)((m, s) => add(m, s))
def add[T](m: ScopedMap, s: Setting[T]): ScopedMap =
m.mapValue[T](s.key, Vector.empty[Setting[T]], ss => append(ss, s))
@ -399,7 +399,7 @@ trait Init[ScopeType] {
val empty = Map.empty[ScopedKey[_], Flattened]
val flattenedLocals = (empty /: ordered) { (cmap, c) =>
val flattenedLocals = ordered.foldLeft(empty) { (cmap, c) =>
cmap.updated(c.key, flatten(cmap, c.key, c.dependencies))
}
@ -859,7 +859,7 @@ trait Init[ScopeType] {
}
private[sbt] def processAttributes[S](init: S)(f: (S, AttributeMap) => S): S =
(init /: alist.toList(inputs)) { (v, i) =>
alist.toList(inputs).foldLeft(init) { (v, i) =>
i.processAttributes(v)(f)
}
}

View File

@ -16,7 +16,7 @@ object Util {
separate(ps)(Types.idFun)
def separate[T, A, B](ps: Seq[T])(f: T => Either[A, B]): (Seq[A], Seq[B]) = {
val (a, b) = ((Nil: Seq[A], Nil: Seq[B]) /: ps)((xs, y) => prependEither(xs, f(y)))
val (a, b) = ps.foldLeft((Nil: Seq[A], Nil: Seq[B]))((xs, y) => prependEither(xs, f(y)))
(a.reverse, b.reverse)
}

View File

@ -81,7 +81,7 @@ object JLineCompletion {
def convertCompletions(cs: Set[Completion]): (Seq[String], Seq[String]) = {
val (insert, display) =
((Set.empty[String], Set.empty[String]) /: cs) {
cs.foldLeft((Set.empty[String], Set.empty[String])) {
case (t @ (insert, display), comp) =>
if (comp.isEmpty) t
else (appendNonEmpty(insert, comp.append), appendNonEmpty(display, comp.display))

View File

@ -487,7 +487,7 @@ trait ParserMain {
/** Applies parser `p` to input `s`. */
def apply[T](p: Parser[T])(s: String): Parser[T] =
(p /: s)(derive1)
s.foldLeft(p)(derive1)
/** Applies parser `p` to a single character of input. */
def derive1[T](p: Parser[T], c: Char): Parser[T] =

View File

@ -170,10 +170,10 @@ object Logic {
}
private[this] def dependencyMap(clauses: Clauses): Map[Atom, Set[Literal]] =
(Map.empty[Atom, Set[Literal]] /: clauses.clauses) {
clauses.clauses.foldLeft(Map.empty[Atom, Set[Literal]]) {
case (m, Clause(formula, heads)) =>
val deps = literals(formula)
(m /: heads) { (n, head) =>
heads.foldLeft(m) { (n, head) =>
n.updated(head, n.getOrElse(head, Set.empty) ++ deps)
}
}
@ -305,7 +305,7 @@ object Logic {
case Clause(formula, head) +: tail =>
// collect direct positive and negative literals and track them in separate graphs
val (pos, neg) = directDeps(formula)
val (newPos, newNeg) = ((posDeps, negDeps) /: head) {
val (newPos, newNeg) = head.foldLeft((posDeps, negDeps)) {
case ((pdeps, ndeps), d) =>
(pdeps + (d, pos), ndeps + (d, neg))
}

View File

@ -85,7 +85,7 @@ object DotGraph {
private def relativized(roots: Iterable[File], path: File): String = {
val relativized = roots.flatMap(root => IO.relativize(root, path))
val shortest = (Int.MaxValue /: relativized)(_ min _.length)
val shortest = relativized.foldLeft(Int.MaxValue)(_ min _.length)
relativized.find(_.length == shortest).getOrElse(path.getName)
}
}

View File

@ -390,7 +390,7 @@ object Tests {
}
}
def overall(results: Iterable[TestResult]): TestResult =
((TestResult.Passed: TestResult) /: results) { (acc, result) =>
results.foldLeft(TestResult.Passed: TestResult) { (acc, result) =>
if (severity(acc) < severity(result)) result else acc
}
def discover(

View File

@ -105,7 +105,7 @@ object BasicCommands {
def help: Command = Command.make(HelpCommand, helpBrief, helpDetailed)(helpParser)
def helpParser(s: State): Parser[() => State] = {
val h = (Help.empty /: s.definedCommands)(
val h = s.definedCommands.foldLeft(Help.empty)(
(a, b) =>
a ++ (try b.help(s)
catch { case NonFatal(_) => Help.empty })
@ -319,7 +319,7 @@ object BasicCommands {
if (cp.isEmpty) parentLoader else toLoader(cp.map(f => new File(f)), parentLoader)
val loaded =
args.map(arg => ModuleUtilities.getObject(arg, loader).asInstanceOf[State => State])
(state /: loaded)((s, obj) => obj(s))
loaded.foldLeft(state)((s, obj) => obj(s))
}
def callParser: Parser[(Seq[String], Seq[String])] =

View File

@ -151,7 +151,7 @@ object Command {
def combine(cmds: Seq[Command]): State => Parser[() => State] = {
val (simple, arbs) = separateCommands(cmds)
state =>
(simpleParser(simple)(state) /: arbs.map(_ parser state))(_ | _)
arbs.map(_ parser state).foldLeft(simpleParser(simple)(state))(_ | _)
}
private[this] def separateCommands(

View File

@ -131,7 +131,7 @@ object Watched {
def multi(base: Watched, paths: Seq[Watched]): Watched =
new AWatched {
override def watchSources(s: State): Seq[Watched.WatchSource] =
(base.watchSources(s) /: paths)(_ ++ _.watchSources(s))
paths.foldLeft(base.watchSources(s))(_ ++ _.watchSources(s))
override def terminateWatch(key: Int): Boolean = base.terminateWatch(key)
override val pollInterval: FiniteDuration = (base +: paths).map(_.pollInterval).min
override val antiEntropy: FiniteDuration = (base +: paths).map(_.antiEntropy).min

View File

@ -3365,7 +3365,7 @@ object Classpaths {
}
def union[A, B](maps: Seq[A => Seq[B]]): A => Seq[B] =
a => (Seq[B]() /: maps) { _ ++ _(a) } distinct;
a => maps.foldLeft(Seq[B]()) { _ ++ _(a) } distinct;
def parseList(s: String, allConfs: Seq[String]): Seq[String] =
(trim(s split ",") flatMap replaceWildcard(allConfs)).distinct

View File

@ -96,7 +96,7 @@ private[sbt] object PluginCross {
VersionNumber(sv) match {
case VersionNumber(Seq(0, 12, _*), _, _) => "2.9.2"
case VersionNumber(Seq(0, 13, _*), _, _) => "2.10.7"
case VersionNumber(Seq(1, 0, _*), _, _) => "2.12.8"
case VersionNumber(Seq(1, 0, _*), _, _) => "2.12.10"
case _ => sys.error(s"Unsupported sbt binary version: $sv")
}
}

View File

@ -326,7 +326,7 @@ ${listConflicts(conflicting)}""")
}
private[sbt] def and(a: Plugins, b: Plugins) = b match {
case Empty => a
case And(ns) => (a /: ns)(_ && _)
case And(ns) => ns.foldLeft(a)(_ && _)
case b: Basic => a && b
}
private[sbt] def remove(a: Plugins, del: Set[Basic]): Plugins = a match {

View File

@ -706,7 +706,7 @@ object Project extends ProjectExtra {
): Relation[ScopedKey[_], ScopedKey[_]] = {
val cMap = Def.flattenLocals(Def.compiled(settings, actual))
val emptyRelation = Relation.empty[ScopedKey[_], ScopedKey[_]]
(emptyRelation /: cMap) { case (r, (key, value)) => r + (key, value.dependencies) }
cMap.foldLeft(emptyRelation) { case (r, (key, value)) => r + (key, value.dependencies) }
}
def showDefinitions(key: AttributeKey[_], defs: Seq[Scope])(

View File

@ -48,7 +48,7 @@ object Tags {
}
private[this] final class Sum(tags: Seq[Tag], max: Int) extends Rule {
checkMax(max)
def apply(m: TagMap) = (0 /: tags)((sum, t) => sum + getInt(m, t)) <= max
def apply(m: TagMap) = tags.foldLeft(0)((sum, t) => sum + getInt(m, t)) <= max
override def toString = tags.mkString("Limit sum of ", ", ", " to " + max)
}
private[this] final class Or(a: Rule, b: Rule) extends Rule {

View File

@ -324,7 +324,7 @@ object BuildStreams {
resolvePath(projectPath(units, root, scoped, data), nonProjectPath(scoped))
def resolvePath(base: File, components: Seq[String]): File =
(base /: components)((b, p) => new File(b, p))
components.foldLeft(base)((b, p) => new File(b, p))
def pathComponent[T](axis: ScopeAxis[T], scoped: ScopedKey[_], label: String)(
show: T => String

View File

@ -65,7 +65,7 @@ private[sbt] object EvaluateConfigurations {
evaluateSbtFile(eval, src, IO.readLines(src), imports, 0)
}
loader =>
(LoadedSbtFile.empty /: loadFiles) { (loaded, load) =>
loadFiles.foldLeft(LoadedSbtFile.empty) { (loaded, load) =>
loaded merge load(loader)
}
}

View File

@ -68,7 +68,7 @@ object IvyConsole {
unmanaged: Seq[File]
)
def parseDependencies(args: Seq[String], log: Logger): Dependencies =
(Dependencies(Nil, Nil, Nil) /: args)(parseArgument(log))
args.foldLeft(Dependencies(Nil, Nil, Nil))(parseArgument(log))
def parseArgument(log: Logger)(acc: Dependencies, arg: String): Dependencies =
arg match {
case _ if arg contains " at " => acc.copy(resolvers = parseResolver(arg) +: acc.resolvers)

View File

@ -22,7 +22,7 @@ object KeyIndex {
projects: Map[URI, Set[String]],
configurations: Map[String, Seq[Configuration]]
): ExtendableKeyIndex =
(base(projects, configurations) /: known) { _ add _ }
known.foldLeft(base(projects, configurations)) { _ add _ }
def aggregate(
known: Iterable[ScopedKey[_]],
extra: BuildUtil[_],
@ -42,9 +42,9 @@ object KeyIndex {
Aggregation.aggregate(key, ScopeMask(), extra, reverse = true)
case _ => Nil
}
(base(projects, configurations) /: toAggregate) {
toAggregate.foldLeft(base(projects, configurations)) {
case (index, Nil) => index
case (index, keys) => (index /: keys)(_ add _)
case (index, keys) => keys.foldLeft(index)(_ add _)
}
}
@ -84,7 +84,7 @@ object KeyIndex {
def keys(proj: Option[ResolvedReference], conf: Option[String], task: Option[AttributeKey[_]]) =
concat(_.keys(proj, conf, task))
def concat[T](f: KeyIndex => Set[T]): Set[T] =
(Set.empty[T] /: indices)((s, k) => s ++ f(k))
indices.foldLeft(Set.empty[T])((s, k) => s ++ f(k))
}
private[sbt] def getOr[A, B](m: Map[A, B], key: A, or: B): B = m.getOrElse(key, or)
private[sbt] def keySet[A, B](m: Map[Option[A], B]): Set[A] = m.keys.flatten.toSet
@ -241,7 +241,7 @@ private[sbt] final class KeyIndex0(val data: BuildIndex) extends ExtendableKeyIn
key: String
): Set[AttributeKey[_]] = keyIndex(proj, conf).tasks(key)
def keys(proj: Option[ResolvedReference]): Set[String] =
(Set.empty[String] /: optConfigs(proj)) { (s, c) =>
optConfigs(proj).foldLeft(Set.empty[String]) { (s, c) =>
s ++ keys(proj, c)
}
def keys(proj: Option[ResolvedReference], conf: Option[String]): Set[String] =
@ -270,7 +270,7 @@ private[sbt] final class KeyIndex0(val data: BuildIndex) extends ExtendableKeyIn
def addAggregated(scoped: ScopedKey[_], extra: BuildUtil[_]): ExtendableKeyIndex =
if (validID(scoped.key.label)) {
val aggregateProjects = Aggregation.aggregate(scoped, ScopeMask(), extra, reverse = true)
((this: ExtendableKeyIndex) /: aggregateProjects)(_ add _)
aggregateProjects.foldLeft(this: ExtendableKeyIndex)(_ add _)
} else
this

View File

@ -498,7 +498,7 @@ private[sbt] object Load {
unit.definitions.builds.flatMap(_.buildLoaders).toList match {
case Nil => loaders
case x :: xs =>
val resolver = (x /: xs) { _ | _ }
val resolver = xs.foldLeft(x) { _ | _ }
if (isRoot) loaders.setRoot(resolver) else loaders.addNonRoot(unit.uri, resolver)
}
@ -1072,7 +1072,7 @@ private[sbt] object Load {
case sf: DefaultSbtFiles => settings(defaultSbtFiles.filter(sf.include))
case p: AutoPlugins => autoPluginSettings(p)
case q: Sequence =>
(Seq.empty[Setting[_]] /: q.sequence) { (b, add) =>
q.sequence.foldLeft(Seq.empty[Setting[_]]) { (b, add) =>
b ++ expandSettings(add)
}
}
@ -1128,7 +1128,9 @@ private[sbt] object Load {
0
)(loader)
// How to merge SbtFiles we read into one thing
def merge(ls: Seq[LoadedSbtFile]): LoadedSbtFile = (LoadedSbtFile.empty /: ls) { _ merge _ }
def merge(ls: Seq[LoadedSbtFile]): LoadedSbtFile = ls.foldLeft(LoadedSbtFile.empty) {
_ merge _
}
// Loads a given file, or pulls from the cache.
def memoLoadSettingsFile(src: File): LoadedSbtFile =
@ -1148,7 +1150,7 @@ private[sbt] object Load {
case sf: SbtFiles => sf.files.map(f => IO.resolve(projectBase, f)).filterNot(_.isHidden)
case sf: DefaultSbtFiles => defaultSbtFiles.filter(sf.include).filterNot(_.isHidden)
case q: Sequence =>
(Seq.empty[File] /: q.sequence) { (b, add) =>
q.sequence.foldLeft(Seq.empty[File]) { (b, add) =>
b ++ associatedFiles(add)
}
case _ => Seq.empty

View File

@ -418,7 +418,7 @@ private[sbt] object PluginsDebug {
def allSettings(p: AutoPlugin): Seq[Setting[_]] =
p.projectSettings ++ p.buildSettings ++ p.globalSettings
val empty = Relation.empty[AutoPlugin, AttributeKey[_]]
(empty /: available)((r, p) => r + (p, extractDefinedKeys(allSettings(p))))
available.foldLeft(empty)((r, p) => r + (p, extractDefinedKeys(allSettings(p))))
}
private[this] def excludedError(transitive: Boolean, dependencies: List[AutoPlugin]): String =

View File

@ -156,7 +156,7 @@ object SessionSettings {
}
def removeRanges[T](in: Seq[T], ranges: Seq[(Int, Int)]): Seq[T] = {
val asSet = (Set.empty[Int] /: ranges) { case (s, (hi, lo)) => s ++ (hi to lo) }
val asSet = ranges.foldLeft(Set.empty[Int]) { case (s, (hi, lo)) => s ++ (hi to lo) }
in.zipWithIndex.flatMap { case (t, index) => if (asSet(index + 1)) Nil else t :: Nil }
}
@ -218,7 +218,7 @@ object SessionSettings {
val path = writeTo.getAbsolutePath
val (inFile, other, _) =
((List[Setting[_]](), List[Setting[_]](), Set.empty[ScopedKey[_]]) /: original.reverse) {
original.reverse.foldLeft((List[Setting[_]](), List[Setting[_]](), Set.empty[ScopedKey[_]])) {
case ((in, oth, keys), s) =>
s.pos match {
case RangePosition(`path`, _) if !keys.contains(s.key) => (s :: in, oth, keys + s.key)
@ -226,7 +226,7 @@ object SessionSettings {
}
}
val (_, oldShifted, replace) = ((0, List[Setting[_]](), Seq[SessionSetting]()) /: inFile) {
val (_, oldShifted, replace) = inFile.foldLeft((0, List[Setting[_]](), Seq[SessionSetting]())) {
case ((offs, olds, repl), s) =>
val RangePosition(_, r @ LineRange(start, end)) = s.pos
settings find (_._1.key == s.key) match {
@ -247,7 +247,7 @@ object SessionSettings {
val adjusted = if (newSettings.nonEmpty && needsTrailingBlank(exist)) exist :+ "" else exist
val lines = adjusted ++ newSettings.flatMap(x => x._2 :+ "")
IO.writeLines(writeTo, lines)
val (newWithPos, _) = ((List[SessionSetting](), adjusted.size + 1) /: newSettings) {
val (newWithPos, _) = newSettings.foldLeft((List[SessionSetting](), adjusted.size + 1)) {
case ((acc, line), (s, newLines)) =>
val endLine = line + newLines.size
((s withPos RangePosition(path, LineRange(line, endLine)), newLines) :: acc, endLine + 1)

View File

@ -4,7 +4,7 @@ import sbt.contraband.ContrabandPlugin.autoImport._
object Dependencies {
// WARNING: Please Scala update versions in PluginCross.scala too
val scala212 = "2.12.8"
val scala212 = "2.12.10"
lazy val checkPluginCross = settingKey[Unit]("Make sure scalaVersion match up")
val baseScalaVersion = scala212
def nightlyVersion: Option[String] = sys.props.get("sbt.build.version")
@ -112,7 +112,7 @@ object Dependencies {
def addSbtZincCompileCore(p: Project): Project =
addSbtModule(p, sbtZincPath, "zincCompileCore", zincCompileCore)
val lmCoursierVersion = "2.0.0-RC3-3"
val lmCoursierVersion = "2.0.0-RC3-4"
val lmCoursierShaded = "io.get-coursier" %% "lm-coursier-shaded" % lmCoursierVersion
val sjsonNewScalaJson = Def.setting {

View File

@ -1,10 +1,10 @@
scalaVersion := "2.12.8"
scalaVersion := "2.12.10"
scalacOptions ++= Seq("-feature", "-language:postfixOps")
addSbtPlugin("org.scala-sbt" % "sbt-houserules" % "0.3.9")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.0.2")
addSbtPlugin("org.scala-sbt" % "sbt-contraband" % "0.4.1")
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "3.0.2")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0")
addSbtPlugin("com.lightbend" % "sbt-whitesource" % "0.1.14")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.9")
addSbtPlugin("org.scala-sbt" % "sbt-houserules" % "0.3.9")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.0.2")
addSbtPlugin("org.scala-sbt" % "sbt-contraband" % "0.4.1")
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "3.0.2")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0")
addSbtPlugin("com.lightbend" % "sbt-whitesource" % "0.1.14")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.9")

View File

@ -1,5 +1,5 @@
scalaVersion := "2.12.8"
crossScalaVersions := List("2.12.8", "2.13.0")
scalaVersion := "2.12.10"
crossScalaVersions := List("2.12.10", "2.13.0")
val setLastModified = taskKey[Unit]("Sets the last modified time for classfiles")
setLastModified := {

View File

@ -1 +1 @@
crossScalaVersions := Seq[String]("2.11.12", "2.12.8")
crossScalaVersions := Seq[String]("2.11.12", "2.12.10")

View File

@ -1,5 +1,5 @@
> ++2.11.12; compile
> ++ 2.12.8 ; compile;
> ++ 2.12.10 ; compile;
> ++ 2.12.8 ; compile
> ++ 2.12.10 ; compile

View File

@ -1,4 +1,5 @@
lazy val scala212 = "2.12.8"
lazy val scala212 = "2.12.10"
// keep this at M5 to test full version
lazy val scala213 = "2.13.0-M5"
ThisBuild / crossScalaVersions := Seq(scala212, scala213)

View File

@ -13,7 +13,7 @@ $ exists lib/target/scala-2.13.0-M5
# test safe switching
> clean
> ++ 2.12.8 -v compile
> ++ 2.12.10 -v compile
$ exists lib/target/scala-2.12
-$ exists lib/target/scala-2.13.0-M5
$ exists sbt-foo/target/scala-2.12
@ -29,7 +29,7 @@ $ exists sbt-foo/target/scala-2.12
# Test ++ leaves crossScalaVersions unchanged
> clean
> ++2.12.8
> ++2.12.10
> +extrasProj/compile
$ exists extras/target/scala-2.13.0-M5
$ exists extras/target/scala-2.12

View File

@ -1,4 +1,4 @@
lazy val scala212 = "2.12.8"
lazy val scala212 = "2.12.10"
lazy val scala213 = "2.13.0-M5"
ThisBuild / scalaVersion := scala212

View File

@ -2,7 +2,7 @@ val newContents = "bbbbbbbbb"
val rootContentFile = "root.txt"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
lazy val root = (project in file("."))
.settings(

View File

@ -24,7 +24,7 @@ val bResolver = Def.setting {
val apiBaseSetting = apiURL := Some(apiBase(name.value))
def apiBase(projectName: String) = url(s"http://example.org/${projectName}")
def scalaLibraryBase(v: String) = url(s"http://www.scala-lang.org/api/$v/")
def scalaLibraryBase(v: String) = url(s"https://www.scala-lang.org/api/$v/")
def addDep(projectName: String) =
libraryDependencies += organization.value %% projectName % version.value

View File

@ -1,6 +1,6 @@
val buildInfo = taskKey[Seq[File]]("generates the build info")
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
lazy val root = (project in file("."))
.settings(

View File

@ -19,4 +19,4 @@ val dynamicTask = taskKey[Unit]("dynamic input task")
dynamicTask := { println("not yet et") }
crossScalaVersions := "2.11.12" :: "2.12.8" :: Nil
crossScalaVersions := "2.11.12" :: "2.12.10" :: Nil

View File

@ -37,4 +37,4 @@
> ++ 2.11.12 compile; setStringValue bar; checkStringValue bar
> ++2.12.8 compile; setStringValue foo; checkStringValue foo
> ++2.12.10 compile; setStringValue foo; checkStringValue foo

View File

@ -2,7 +2,7 @@ ThisBuild / turbo := true
val akkaTest = (project in file(".")).settings(
name := "akka-test",
scalaVersion := "2.12.8",
scalaVersion := "2.12.10",
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % "2.5.16",
"com.lihaoyi" %% "utest" % "0.6.6" % "test"

View File

@ -13,7 +13,7 @@ def wrap(task: InputKey[Unit]): Def.Initialize[Task[Unit]] =
ThisBuild / turbo := true
val root = (project in file(".")).settings(
scalaVersion := "2.12.8",
scalaVersion := "2.12.10",
javacOptions ++= Seq("-source", "1.8", "-target", "1.8", "-h",
sourceDirectory.value.toPath.resolve("main/native/include").toString),
libraryDependencies += "com.lihaoyi" %% "utest" % "0.6.6" % "test",

View File

@ -2,7 +2,7 @@ ThisBuild / turbo := true
val snapshot = (project in file(".")).settings(
name := "mismatched-libraries",
scalaVersion := "2.12.8",
scalaVersion := "2.12.10",
libraryDependencies ++= Seq("com.lihaoyi" %% "utest" % "0.6.6" % "test"),
testFrameworks := Seq(TestFramework("utest.runner.Framework")),
resolvers += "Local Maven" at file("libraries/ivy").toURI.toURL.toString,

View File

@ -1,6 +1,6 @@
val layeringStrategyTest = (project in file(".")).settings(
name := "layering-strategy-test",
scalaVersion := "2.12.8",
scalaVersion := "2.12.10",
organization := "sbt",
libraryDependencies += "com.typesafe.akka" %% "akka-actor" % "2.5.16",
)

View File

@ -9,7 +9,7 @@ ThisBuild / useCoursier := false
val snapshot = (project in file(".")).settings(
name := "akka-test",
scalaVersion := "2.12.8",
scalaVersion := "2.12.10",
libraryDependencies ++= Seq(
"com.lihaoyi" %% "utest" % "0.6.6" % "test"
),

View File

@ -14,7 +14,7 @@
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>2.12.8</version>
<version>2.12.10</version>
</dependency>
</dependencies>
</project>

View File

@ -14,7 +14,7 @@
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>2.12.8</version>
<version>2.12.10</version>
</dependency>
</dependencies>
</project>

View File

@ -2,6 +2,6 @@ name := "Simple Project"
version := "1.0"
scalaVersion := "2.12.8"
scalaVersion := "2.12.10"
libraryDependencies += "org.apache.spark" %% "spark-sql" % "2.4.3"

View File

@ -2,7 +2,7 @@ ThisBuild / turbo := true
val utestTest = (project in file(".")).settings(
name := "utest-test",
scalaVersion := "2.12.8",
scalaVersion := "2.12.10",
libraryDependencies ++= Seq(
"com.lihaoyi" %% "utest" % "0.6.6" % "test"
),

View File

@ -1,4 +1,4 @@
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
lazy val root = (project in file(".")).
settings(

View File

@ -1,4 +1,4 @@
lazy val scala212 = "2.12.8"
lazy val scala212 = "2.12.10"
lazy val scala213 = "2.13.0-M5"
ThisBuild / scalaVersion := scala212

View File

@ -1,4 +1,4 @@
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
// TTL of Coursier is 24h
ThisBuild / useCoursier := false

View File

@ -3,7 +3,7 @@ lazy val check = taskKey[Unit]("Runs the check")
val scalatest = "org.scalatest" %% "scalatest" % "3.0.5"
val junit = "junit" % "junit" % "4.11"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
def commonSettings: Seq[Def.Setting[_]] =
Seq(

View File

@ -1,9 +1,9 @@
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
lazy val check = taskKey[Unit]("")
// We can't use "%%" here without breaking the "== bridgeModule" check below
val bridgeModule = "org.scala-sbt" % s"compiler-bridge_2.12" % "1.3.0-M3"
val bridgeModule = "org.scala-sbt" % "compiler-bridge_2.12" % "1.3.0"
libraryDependencies += bridgeModule % Configurations.ScalaTool

View File

@ -1,4 +1,4 @@
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
libraryDependencies ++= List(
"org.webjars.npm" % "randomatic" % "1.1.7",
"org.webjars.npm" % "is-odd" % "2.0.0",

View File

@ -1 +1 @@
scalaVersion := "2.12.8"
scalaVersion := "2.12.10"

View File

@ -1,5 +1,5 @@
ThisBuild / organization := "com.example"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
def customIvyPaths: Seq[Def.Setting[_]] = Seq(
ivyPaths := IvyPaths((baseDirectory in ThisBuild).value, Some((baseDirectory in ThisBuild).value / "ivy-cache"))

View File

@ -1,5 +1,5 @@
ThisBuild / organization := "com.example"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
// TTL is 24h so we can't detect the change
ThisBuild / useCoursier := false

View File

@ -1,5 +1,4 @@
// ThisBuild / useCoursier := false
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
lazy val root = (project in file("."))
.settings(
@ -13,15 +12,16 @@ def checkSources(report: UpdateReport): Unit = {
val srcs = getSources(report).map(_.getName)
if(srcs.isEmpty)
sys.error(s"No sources retrieved\n\n$report")
else if (srcs.size != 8 || !srcs.exists(_ == "akka-actor_2.12-2.5.22-sources.jar")) {
// scala-library-2.12.8-sources.jar
// config-1.3.3-sources.jar
// akka-actor_2.12-2.5.22-sources.jar
// scala-java8-compat_2.12-0.8.0-sources.jar
// scala-xml_2.12-1.0.6-sources.jar
// scala-compiler-2.12.8-sources.jar
// scala-reflect-2.12.8-sources.jar
// jline-2.14.6-sources.jar
else if (srcs.size != 9 || !srcs.exists(_ == "akka-actor_2.12-2.5.22-sources.jar")) {
// [info] [error] scala-java8-compat_2.12-0.8.0-sources.jar
// [info] [error] scala-library-2.12.10-sources.jar
// [info] [error] config-1.3.3-sources.jar
// [info] [error] akka-actor_2.12-2.5.22-sources.jar
// [info] [error] scala-compiler-2.12.10-sources.jar
// [info] [error] jline-2.14.6-sources.jar
// [info] [error] jansi-1.12-sources.jar
// [info] [error] scala-xml_2.12-1.0.6-sources.jar
// [info] [error] scala-reflect-2.12.10-sources.jar
sys.error("Incorrect sources retrieved:\n\t" + srcs.mkString("\n\t"))
} else ()
}

View File

@ -1,4 +1,4 @@
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
lazy val check = taskKey[Unit]("")

View File

@ -1,4 +1,4 @@
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
name := "hello"
enablePlugins(JavaAppPackaging)

View File

@ -1,3 +1,3 @@
name := "projA"
scalaVersion := "2.12.8"
scalaVersion := "2.12.10"

View File

@ -1,7 +1,7 @@
val baseSbt = "1."
val buildCrossList = List("2.10.7", "2.11.12", "2.12.8")
scalaVersion in ThisBuild := "2.12.8"
val buildCrossList = List("2.10.7", "2.11.12", "2.12.10")
scalaVersion in ThisBuild := "2.12.10"
crossScalaVersions in ThisBuild := buildCrossList
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.7.0")

View File

@ -1,6 +1,6 @@
val unpackage = TaskKey[Unit]("unpackage")
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
lazy val root = (project in file("."))
.settings(

View File

@ -1,4 +1,4 @@
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
ThisBuild / trackInternalDependencies := TrackLevel.NoTracking
lazy val root = (project in file("."))

View File

@ -1,3 +1,4 @@
// TODO: bump to 2.12.10 once scalameta is available
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / semanticdbEnabled := true
ThisBuild / semanticdbIncludeInJar := true

View File

@ -1,6 +1,6 @@
val scalcheck = "org.scalacheck" %% "scalacheck" % "1.14.0"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
lazy val root = (project in file("."))
.settings(

View File

@ -1,4 +1,4 @@
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
lazy val dep = project

View File

@ -1,3 +1,3 @@
# A.scala needs B.scala, it would be in source list
> ++2.12.8!
> ++2.12.10!
> compile

View File

@ -1,3 +1,4 @@
// TODO: bump to 2.12.10 once macro paradise is available
ThisBuild / scalaVersion := "2.12.8"
val paradiseVersion = "2.1.1"

View File

@ -1,4 +1,4 @@
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
val defaultSettings = Seq(
libraryDependencies += scalaVersion("org.scala-lang" % "scala-reflect" % _ ).value

View File

@ -1,4 +1,4 @@
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
val defaultSettings = Seq(
libraryDependencies += scalaVersion("org.scala-lang" % "scala-reflect" % _ ).value

View File

@ -1,4 +1,4 @@
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
val defaultSettings = Seq(
libraryDependencies += scalaVersion("org.scala-lang" % "scala-reflect" % _ ).value

View File

@ -1,4 +1,4 @@
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
val defaultSettings = Seq(
libraryDependencies += scalaVersion("org.scala-lang" % "scala-reflect" % _ ).value

View File

@ -1,6 +1,6 @@
val scalatest = "org.scalatest" %% "scalatest" % "3.0.5"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
lazy val root = (project in file("."))
.settings(

View File

@ -1,6 +1,6 @@
val scalatest = "org.scalatest" %% "scalatest" % "3.0.5"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
lazy val root = (project in file("."))
.settings(

View File

@ -1,6 +1,6 @@
val scalatest = "org.scalatest" %% "scalatest" % "3.0.5"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
lazy val root = (project in file("."))
.settings(

View File

@ -1,4 +1,4 @@
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
lazy val root = (project in file("."))
.settings(

View File

@ -1,7 +1,7 @@
import Tests._
import Defaults._
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
val check = taskKey[Unit]("Check that tests are executed in parallel")
lazy val root = (project in file("."))

View File

@ -1,5 +1,5 @@
val specs = "org.specs2" %% "specs2-core" % "4.3.4"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
Global / concurrentRestrictions := Seq(Tags.limitAll(4))
libraryDependencies += specs % Test

View File

@ -1,4 +1,4 @@
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
libraryDependencies += "org.scala-sbt" % "test-interface" % "1.0"

View File

@ -11,7 +11,7 @@ val scalaxml = "org.scala-lang.modules" %% "scala-xml" % "1.1.1"
def groupId(idx: Int) = "group_" + (idx + 1)
def groupPrefix(idx: Int) = groupId(idx) + "_file_"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
ThisBuild / organization := "org.example"
lazy val root = (project in file("."))

View File

@ -1,6 +1,6 @@
val scalatest = "org.scalatest" %% "scalatest" % "3.0.5"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
fork := true
libraryDependencies += scalatest % Test

View File

@ -1,4 +1,4 @@
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
val specs = "org.specs2" %% "specs2-core" % "4.3.4"

View File

@ -14,7 +14,7 @@ val nestedSuitesReportFile = "target/test-reports/my.scalatest.MyNestedSuites.xm
val scalatest = "org.scalatest" %% "scalatest" % "3.0.5"
val junitinterface = "com.novocode" % "junit-interface" % "0.11"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
lazy val root = (project in file(".")).
settings(

View File

@ -1,6 +1,6 @@
val scalatest = "org.scalatest" %% "scalatest" % "3.0.5"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
lazy val root = (project in file("."))
.settings(

View File

@ -1,6 +1,6 @@
val scalatest = "org.scalatest" %% "scalatest" % "3.0.5"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
lazy val root = (project in file("."))
.settings(

View File

@ -1,7 +1,7 @@
val scalatest = "org.scalatest" %% "scalatest" % "3.0.5"
val scalaxml = "org.scala-lang.modules" %% "scala-xml" % "1.1.1"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
lazy val root = (project in file("."))
.settings(

View File

@ -1,6 +1,6 @@
val scalcheck = "org.scalacheck" %% "scalacheck" % "1.14.0"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
ThisBuild / version := "0.0.1"
ThisBuild / organization := "org.catastrophe"

View File

@ -1,5 +1,5 @@
val specsJunit = "org.specs2" %% "specs2-junit" % "4.3.4"
val junitinterface = "com.novocode" % "junit-interface" % "0.11"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
libraryDependencies += junitinterface % Test
libraryDependencies += specsJunit % Test

View File

@ -1,5 +1,5 @@
val scalcheck = "org.scalacheck" %% "scalacheck" % "1.14.0"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
Test / parallelExecution := false
libraryDependencies += scalcheck % Test

View File

@ -1,3 +1,3 @@
val specs = "org.specs2" %% "specs2-core" % "4.3.4"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
libraryDependencies += specs % Test

View File

@ -3,7 +3,7 @@ import sbt.internal.inc.ScalaInstance
lazy val OtherScala = config("other-scala").hide
lazy val junitinterface = "com.novocode" % "junit-interface" % "0.11"
lazy val akkaActor = "com.typesafe.akka" %% "akka-actor" % "2.5.17"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
lazy val root = (project in file("."))
.configs(OtherScala)
@ -18,7 +18,7 @@ lazy val root = (project in file("."))
val rawJars = (managedClasspath in OtherScala).value.map(_.data)
val scalaHome = (target.value / "scala-home")
def removeVersion(name: String): String =
name.replaceAll("\\-2.12.8", "")
name.replaceAll("\\-2.12.10", "")
for(jar <- rawJars) {
val tjar = scalaHome / s"lib/${removeVersion(jar.getName)}"
IO.copyFile(jar, tjar)

View File

@ -1,6 +1,6 @@
val scalatest = "org.scalatest" %% "scalatest" % "3.0.5"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
ThisBuild / organization := "com.example"
ThisBuild / version := "0.0.1-SNAPSHOT"

View File

@ -1,3 +1,3 @@
val scalatest = "org.scalatest" %% "scalatest" % "3.0.5"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
libraryDependencies += scalatest

View File

@ -1,4 +1,4 @@
val scalatest = "org.scalatest" %% "scalatest" % "3.0.5"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
libraryDependencies += scalatest
Test / testOptions += Tests.Argument("-C", "custom.CustomReporter")

View File

@ -1,4 +1,4 @@
val specs = "org.specs2" %% "specs2-core" % "4.3.4"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
libraryDependencies += specs % Test

View File

@ -7,7 +7,7 @@ val check = TaskKey[Unit]("check", "Check correct error has been returned.")
val scalatest = "org.scalatest" %% "scalatest" % "3.0.5"
val scalaxml = "org.scala-lang.modules" %% "scala-xml" % "1.1.1"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
lazy val root = (project in file(".")).
settings(

View File

@ -1,4 +1,4 @@
val scalatest = "org.scalatest" %% "scalatest" % "3.0.5"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
libraryDependencies += scalatest
Test / testOptions += Tests.Argument("-C", "custom.CustomReporter")

View File

@ -1,5 +1,5 @@
val scalatest = "org.scalatest" %% "scalatest" % "3.0.5"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
lazy val root = (project in file("."))
.settings(

View File

@ -1,6 +1,6 @@
val scalatest = "org.scalatest" %% "scalatest" % "3.0.5"
val scalaxml = "org.scala-lang.modules" %% "scala-xml" % "1.1.1"
ThisBuild / scalaVersion := "2.12.8"
ThisBuild / scalaVersion := "2.12.10"
lazy val root = (project in file("."))
.settings(

Some files were not shown because too many files have changed in this diff Show More