Bumping up dependencies

This commit is contained in:
Eugene Yokota 2016-05-05 14:38:24 -04:00
parent c70c9989e5
commit fd7c162ea8
33 changed files with 128 additions and 115 deletions

View File

@ -35,7 +35,6 @@ env:
- SBT_CMD="scripted source-dependencies/*3of3"
- SBT_CMD="scripted tests/*"
- SBT_CMD="scripted project-load/*"
- SBT_CMD="checkBuildScala211"
- SBT_CMD="repoOverrideTest:scripted dependency-management/*"
notifications:

View File

@ -3,3 +3,9 @@ Migration notes
- `project/Build.scala` style based on `sbt.Build` is removed. Migrate to `build.sbt`.
- `Project(...)` constructor is limited to just two parameters.
- change import in auto plugin to:
```scala
import sbt._, syntax._, Keys._
```

View File

@ -11,8 +11,11 @@ import com.typesafe.tools.mima.plugin.MimaPlugin.mimaDefaultSettings
def buildLevelSettings: Seq[Setting[_]] = inThisBuild(Seq(
organization := "org.scala-sbt",
version := "1.0.0-SNAPSHOT",
bintrayOrganization := Some(if (publishStatus.value == "releases") "typesafe" else "sbt"),
bintrayRepository := s"ivy-${publishStatus.value}",
bintrayOrganization := Some("sbt"),
bintrayRepository := {
if (isSnapshot.value) "maven-releases"
else "maven-snapshots"
},
bintrayPackage := "sbt",
bintrayReleaseOnPublish := false,
resolvers += Resolver.mavenLocal
@ -21,7 +24,6 @@ def buildLevelSettings: Seq[Setting[_]] = inThisBuild(Seq(
def commonSettings: Seq[Setting[_]] = Seq[SettingsDefinition](
scalaVersion := scala211,
publishArtifact in packageDoc := false,
publishMavenStyle := false,
componentID := None,
resolvers += Resolver.typesafeIvyRepo("releases"),
resolvers += Resolver.sonatypeRepo("snapshots"),
@ -30,7 +32,7 @@ def commonSettings: Seq[Setting[_]] = Seq[SettingsDefinition](
testOptions += Tests.Argument(TestFrameworks.ScalaCheck, "-w", "1"),
javacOptions in compile ++= Seq("-target", "6", "-source", "6", "-Xlint", "-Xlint:-serial"),
incOptions := incOptions.value.withNameHashing(true),
crossScalaVersions := Seq(scala211),
crossScalaVersions := Seq(scala211, scala210),
bintrayPackage := (bintrayPackage in ThisBuild).value,
bintrayRepository := (bintrayRepository in ThisBuild).value,
mimaDefaultSettings,
@ -99,6 +101,9 @@ lazy val testingProj = (project in file("testing")).
lazy val testAgentProj = (project in file("testing") / "agent").
settings(
minimalSettings,
crossScalaVersions := Seq(scala211),
crossPaths := false,
autoScalaLibrary := false,
name := "Test Agent",
libraryDependencies += testInterface
)
@ -318,15 +323,6 @@ def customCommands: Seq[Setting[_]] = Seq(
s"""set scalaVersion in ThisBuild := "$scala211" """ ::
state
},
// This is invoked by Travis
commands += Command.command("checkBuildScala211") { state =>
s"++ $scala211" ::
// First compile everything before attempting to test
"all compile test:compile" ::
// Now run known working tests.
safeUnitTests.key.label ::
state
},
safeUnitTests := {
test.all(safeProjects).value
},

View File

@ -140,23 +140,21 @@ object CacheIvy {
}
import L5._
implicit def inlineIvyIC: InputCache[InlineIvyConfiguration] = wrapIn
implicit def moduleSettingsIC: InputCache[ModuleSettings] =
unionInputCache[ModuleSettings, PomConfiguration :+: InlineConfiguration :+: InlineConfigurationWithExcludes :+: IvyFileConfiguration :+: HNil]
unionInputCache[ModuleSettings, PomConfiguration :+: InlineConfiguration :+: IvyFileConfiguration :+: HNil]
implicit def ivyConfigurationIC: InputCache[IvyConfiguration] =
unionInputCache[IvyConfiguration, InlineIvyConfiguration :+: ExternalIvyConfiguration :+: HNil]
object L4 {
implicit val inlineWithExcludesToHL = (c: InlineConfigurationWithExcludes) =>
implicit val inlineToHL = (c: InlineConfiguration) =>
c.module :+: c.dependencies :+: c.ivyXML :+: c.configurations :+: c.defaultConfiguration.map(_.name) :+:
c.ivyScala :+: c.validate :+: c.overrides :+: c.excludes :+: HNil
implicit def moduleConfToHL = (m: ModuleConfiguration) => m.organization :+: m.name :+: m.revision :+: m.resolver :+: HNil
implicit def inlineToHL = (c: InlineConfiguration) => c.module :+: c.dependencies :+: c.ivyXML :+: c.configurations :+: c.defaultConfiguration.map(_.name) :+: c.ivyScala :+: c.validate :+: c.overrides :+: HNil
// implicit def inlineToHL = (c: InlineConfiguration) => c.module :+: c.dependencies :+: c.ivyXML :+: c.configurations :+: c.defaultConfiguration.map(_.name) :+: c.ivyScala :+: c.validate :+: c.overrides :+: HNil
}
import L4._
implicit def inlineWithExcludesIC: InputCache[InlineConfigurationWithExcludes] = wrapIn
implicit def inlineIC: InputCache[InlineConfiguration] = wrapIn
implicit def moduleConfIC: InputCache[ModuleConfiguration] = wrapIn

View File

@ -8,7 +8,7 @@ import sbt.internal.inc.{ AnalyzingCompiler, JavaCompiler }
import Predef.{ conforms => _, _ }
import sbt.internal.util.Types.:+:
import sbt.io.Path._
import sbt.io.syntax._
import sbt.io.IO
import sbinary.DefaultProtocol.FileFormat

View File

@ -8,7 +8,7 @@ import java.io.File
import java.util.jar.{ Attributes, Manifest }
import collection.JavaConversions._
import sbt.internal.util.Types.:+:
import sbt.io.Path._
import sbt.io.syntax._
import sbt.io.IO
import sbinary.{ DefaultProtocol, Format }

View File

@ -7,7 +7,7 @@ import java.io.File
import sbt.internal.inc.{ AnalyzingCompiler, ClasspathOptions, JavaCompiler, RawCompiler, ScalaInstance }
import Predef.{ conforms => _, _ }
import sbt.io.Path._
import sbt.io.syntax._
import sbt.io.IO
import sbinary.DefaultProtocol.FileFormat

View File

@ -8,7 +8,7 @@ import sbt.internal.util.complete.HistoryCommands
import scala.annotation.tailrec
import java.io.File
import sbt.io.Path._
import sbt.io.syntax._
object BasicCommandStrings {
val HelpCommand = "help"

View File

@ -7,7 +7,7 @@ import scala.annotation.tailrec
import java.io.{ File, PrintWriter }
import jline.TerminalFactory
import sbt.internal.io.Using
import sbt.io.Using
import sbt.internal.util.{ ErrorHandling, GlobalLogBacking, GlobalLogging }
import sbt.util.{ AbstractLogger, Logger }

View File

@ -11,7 +11,7 @@ import java.net.URI
import ConcurrentRestrictions.Tag
import Def.{ Initialize, KeyedInitialize, ScopedKey, Setting, setting }
import sbt.io.{ FileFilter, Path, PathFinder }
import Path._
import sbt.io.syntax._
import std.TaskExtra.{ task => mktask, _ }
import Task._
import sbt.internal.util.Types._

View File

@ -18,7 +18,7 @@ object BuildPaths {
val stagingDirectory = AttributeKey[File]("staging-directory", "The directory for staging remote projects.", DSetting)
val dependencyBaseDirectory = AttributeKey[File]("dependency-base-directory", "The base directory for caching dependency resolution.", DSetting)
import Path._
import sbt.io.syntax._
def getGlobalBase(state: State): File = {
val default = defaultVersionedGlobalBase(binarySbtVersion(state))

View File

@ -10,7 +10,7 @@ import BuildPaths.outputDirectory
import Scope.GlobalScope
import BuildStreams.Streams
import sbt.internal.{ BuildDef, Load, OldPlugin }
import sbt.io.Path._
import sbt.io.syntax._
import sbt.internal.util.{ Attributed, AttributeEntry, AttributeKey, AttributeMap, Settings }
import sbt.internal.util.Attributed.data
import sbt.util.Logger

View File

@ -72,7 +72,7 @@ object BuildUtil {
}
}
def baseImports: Seq[String] = "import scala.xml.{TopScope=>$scope}" :: "import sbt._, Keys._, dsl._, Import._" :: Nil
def baseImports: Seq[String] = "import scala.xml.{TopScope=>$scope}" :: "import sbt._, Keys._, dsl._, syntax._" :: Nil
def getImports(unit: BuildUnit): Seq[String] = unit.plugins.detected.imports ++ unit.definitions.dslDefinitions.imports

View File

@ -284,7 +284,7 @@ defaults
"""
import java.io.File
import Path._
import sbt.io.syntax._
def sbtRCs(s: State): Seq[File] =
(Path.userHome / sbtrc) ::

View File

@ -50,6 +50,7 @@ import sbt.internal.io.WatchState
import sbt.io.{ AllPassFilter, FileFilter, GlobFilter, HiddenFileFilter, IO, NameFilter, NothingFilter, Path, PathFinder, SimpleFileFilter, DirectoryFilter }
import Path._
import sbt.io.syntax._
import Keys._
object Defaults extends BuildCommon {
@ -1046,7 +1047,6 @@ object Defaults extends BuildCommon {
}
object Classpaths {
import Path._
import Keys._
import Scope.ThisScope
import Defaults._
@ -1341,7 +1341,7 @@ object Classpaths {
new IvySbt(conf)
}
def moduleSettings0: Initialize[Task[ModuleSettings]] = Def.task {
new InlineConfigurationWithExcludes(projectID.value, projectInfo.value, allDependencies.value, dependencyOverrides.value, excludeDependencies.value,
new InlineConfiguration(projectID.value, projectInfo.value, allDependencies.value, dependencyOverrides.value, excludeDependencies.value,
ivyXML.value, ivyConfigurations.value, defaultConfiguration.value, ivyScala.value, ivyValidate.value, conflictManager.value)
}

View File

@ -16,7 +16,7 @@ import Project.LoadAction
import scala.annotation.tailrec
import sbt.io.IO
import sbt.io.Path._
import sbt.io.syntax._
import StandardMain._
import java.io.File

View File

@ -9,6 +9,7 @@ import java.io.File
import java.net.URL
import sbt.io.Path
import Path._
/** Options for well-known tasks. */
object Opts {
@ -30,7 +31,7 @@ object Opts {
mappings.map { case (f, u) => s"${f.getAbsolutePath}#${u.toExternalForm}" }.mkString("-doc-external-doc:", ",", "") :: Nil
}
object resolver {
import Path._
import sbt.io.syntax._
val sonatypeReleases = Resolver.sonatypeRepo("releases")
val sonatypeSnapshots = Resolver.sonatypeRepo("snapshots")
val sonatypeStaging = new MavenRepository("sonatype-staging", "https://oss.sonatype.org/service/local/staging/deploy/maven2")
@ -40,7 +41,7 @@ object Opts {
object DefaultOptions {
import Opts._
import Path._
import sbt.io.syntax._
import BuildPaths.{ getGlobalBase, getGlobalSettingsDirectory }
import Project.{ extract, richInitializeTask }
import Def.Setting

View File

@ -274,7 +274,7 @@ private[sbt] object Load {
// put cleanups there, perhaps.
if (keepSet.nonEmpty) {
def keepFile(f: File) = keepSet(f.getCanonicalPath)
import Path._
import sbt.io.syntax._
val existing = (baseTarget.allPaths.get).filterNot(_.isDirectory)
val toDelete = existing.filterNot(keepFile)
if (toDelete.nonEmpty) {
@ -799,7 +799,7 @@ private[sbt] object Load {
def hasDefinition(dir: File) =
{
import Path._
import sbt.io.syntax._
(dir * -GlobFilter(DefaultTargetName)).get.nonEmpty
}
def noPlugins(dir: File, config: LoadBuildConfiguration): sbt.LoadedPlugins =

View File

@ -9,10 +9,10 @@ object Dependencies {
lazy val scala211 = "2.11.8"
// sbt modules
val utilVersion = "0.1.0-M11"
val ioVersion = "1.0.0-M3"
val zincVersion = "0.1.0-M3-84942e08e7b11c6ef831c6443fc31bbff19ed3c2-SNAPSHOT"
val librarymanagementVersion = "0.1.0-27bf18f7a3d945d84f72bb0e0e4aa98151417609-SNAPSHOT"
val ioVersion = "1.0.0-M5"
val utilVersion = "0.1.0-M12"
val librarymanagementVersion = "0.1.0-M8"
val zincVersion = "1.0.0-M1"
lazy val sbtIO = "org.scala-sbt" %% "io" % ioVersion
lazy val utilCollection = "org.scala-sbt" %% "util-collection" % utilVersion
lazy val utilLogging = "org.scala-sbt" %% "util-logging" % utilVersion
@ -26,8 +26,8 @@ object Dependencies {
lazy val utilTracking = "org.scala-sbt" %% "util-tracking" % utilVersion
lazy val utilScripted = "org.scala-sbt" %% "util-scripted" % utilVersion
lazy val libraryManagement = "org.scala-sbt" %% "librarymanagement" % librarymanagementVersion
lazy val launcherInterface = "org.scala-sbt" % "launcher-interface" % "1.0.0-M1"
lazy val rawLauncher = "org.scala-sbt" % "launcher" % "1.0.0-M1"
lazy val launcherInterface = "org.scala-sbt" % "launcher-interface" % "1.0.0"
lazy val rawLauncher = "org.scala-sbt" % "launcher" % "1.0.0"
lazy val testInterface = "org.scala-sbt" % "test-interface" % "1.0"
lazy val zinc = "org.scala-sbt" %% "zinc" % zincVersion

View File

@ -1,6 +1,13 @@
package sbt
object Import {
trait Import {
type Setting[T] = Def.Setting[T]
type ScopedKey[T] = Def.ScopedKey[T]
type SettingsDefinition = Def.SettingsDefinition
type File = java.io.File
type URI = java.net.URI
type URL = java.net.URL
// sbt.io
val AllPassFilter = sbt.io.AllPassFilter
val DirectoryFilter = sbt.io.DirectoryFilter
@ -17,10 +24,8 @@ object Import {
type NameFilter = sbt.io.NameFilter
val NothingFilter = sbt.io.NothingFilter
val Path = sbt.io.Path
type PathExtra = sbt.io.PathExtra
val PathFinder = sbt.io.PathFinder
type PathFinder = sbt.io.PathFinder
type PathLow = sbt.io.PathLow
type PatternFilter = sbt.io.PatternFilter
type RichFile = sbt.io.RichFile
type SimpleFileFilter = sbt.io.SimpleFileFilter
@ -362,8 +367,6 @@ object Import {
type ModuleSettings = sbt.internal.librarymanagement.ModuleSettings
val InlineConfiguration = sbt.internal.librarymanagement.InlineConfiguration
type InlineConfiguration = sbt.internal.librarymanagement.InlineConfiguration
val InlineConfigurationWithExcludes = sbt.internal.librarymanagement.InlineConfigurationWithExcludes
type InlineConfigurationWithExcludes = sbt.internal.librarymanagement.InlineConfigurationWithExcludes
type InlineIvyConfiguration = sbt.internal.librarymanagement.InlineIvyConfiguration
type InvalidComponent = sbt.internal.librarymanagement.InvalidComponent
val IvyActions = sbt.internal.librarymanagement.IvyActions

View File

@ -1,6 +1,8 @@
package sbt
import java.lang.{ Process => JProcess, ProcessBuilder => JProcessBuilder }
import java.net.URL
import java.io.File
trait ProcessExtra {
import scala.sys.process._
@ -8,8 +10,8 @@ trait ProcessExtra {
implicit def builderToProcess(builder: JProcessBuilder): ProcessBuilder = apply(builder)
implicit def fileToProcess(file: File): ProcessBuilder.FileBuilder = apply(file)
implicit def urlToProcess(url: URL): ProcessBuilder.URLBuilder = apply(url)
@deprecated("Use string interpolation", "0.13.0")
implicit def xmlToProcess(command: scala.xml.Elem): ProcessBuilder = apply(command)
// @deprecated("Use string interpolation", "0.13.0")
// implicit def xmlToProcess(command: scala.xml.Elem): ProcessBuilder = apply(command)
implicit def buildersToProcess[T](builders: Seq[T])(implicit convert: T => ProcessBuilder.Source): Seq[ProcessBuilder.Source] = applySeq(builders)
implicit def stringToProcess(command: String): ProcessBuilder = apply(command)

View File

@ -1,47 +1,4 @@
/* sbt -- Simple Build Tool
* Copyright 2010, 2011 Mark Harrah
*/
package object sbt extends sbt.std.TaskExtra with sbt.internal.util.Types with sbt.ProcessExtra
with sbt.internal.librarymanagement.impl.DependencyBuilders with sbt.io.PathExtra with sbt.ProjectExtra
with sbt.internal.librarymanagement.DependencyFilterExtra with sbt.BuildExtra with sbt.TaskMacroExtra
with sbt.ScopeFilter.Make {
type Setting[T] = Def.Setting[T]
type ScopedKey[T] = Def.ScopedKey[T]
type SettingsDefinition = Def.SettingsDefinition
type File = java.io.File
type URI = java.net.URI
type URL = java.net.URL
object CompileOrder {
val JavaThenScala = xsbti.compile.CompileOrder.JavaThenScala
val ScalaThenJava = xsbti.compile.CompileOrder.ScalaThenJava
val Mixed = xsbti.compile.CompileOrder.Mixed
}
type CompileOrder = xsbti.compile.CompileOrder
implicit def maybeToOption[S](m: xsbti.Maybe[S]): Option[S] =
if (m.isDefined) Some(m.get) else None
def uri(s: String): URI = new URI(s)
def file(s: String): File = new File(s)
def url(s: String): URL = new URL(s)
final val ThisScope = Scope.ThisScope
final val GlobalScope = Scope.GlobalScope
import sbt.librarymanagement.{ Configuration, Configurations => C }
final val Compile = C.Compile
final val Test = C.Test
final val Runtime = C.Runtime
final val IntegrationTest = C.IntegrationTest
final val Default = C.Default
final val Provided = C.Provided
// java.lang.System is more important, so don't alias this one
// final val System = C.System
final val Optional = C.Optional
def config(s: String): Configuration = C.config(s)
import language.experimental.macros
def settingKey[T](description: String): SettingKey[T] = macro std.KeyMacro.settingKeyImpl[T]
def taskKey[T](description: String): TaskKey[T] = macro std.KeyMacro.taskKeyImpl[T]
def inputKey[T](description: String): InputKey[T] = macro std.KeyMacro.inputKeyImpl[T]
}
package object sbt extends Import

View File

@ -0,0 +1,64 @@
package sbt
object syntax extends syntax
abstract class syntax extends IOSyntax0 with sbt.std.TaskExtra with sbt.internal.util.Types with sbt.ProcessExtra
with sbt.internal.librarymanagement.impl.DependencyBuilders with sbt.ProjectExtra
with sbt.internal.librarymanagement.DependencyFilterExtra with sbt.BuildExtra with sbt.TaskMacroExtra
with sbt.ScopeFilter.Make {
// IO
def uri(s: String): URI = new URI(s)
def file(s: String): File = new File(s)
def url(s: String): URL = new URL(s)
implicit def fileToRichFile(file: File): sbt.io.RichFile = new sbt.io.RichFile(file)
implicit def filesToFinder(cc: Traversable[File]): sbt.io.PathFinder = sbt.io.PathFinder.strict(cc)
// others
object CompileOrder {
val JavaThenScala = xsbti.compile.CompileOrder.JavaThenScala
val ScalaThenJava = xsbti.compile.CompileOrder.ScalaThenJava
val Mixed = xsbti.compile.CompileOrder.Mixed
}
type CompileOrder = xsbti.compile.CompileOrder
implicit def maybeToOption[S](m: xsbti.Maybe[S]): Option[S] =
if (m.isDefined) Some(m.get) else None
final val ThisScope = Scope.ThisScope
final val GlobalScope = Scope.GlobalScope
import sbt.{ Configurations => C }
final val Compile = C.Compile
final val Test = C.Test
final val Runtime = C.Runtime
final val IntegrationTest = C.IntegrationTest
final val Default = C.Default
final val Provided = C.Provided
// java.lang.System is more important, so don't alias this one
// final val System = C.System
final val Optional = C.Optional
def config(s: String): Configuration = C.config(s)
import language.experimental.macros
def settingKey[T](description: String): SettingKey[T] = macro std.KeyMacro.settingKeyImpl[T]
def taskKey[T](description: String): TaskKey[T] = macro std.KeyMacro.taskKeyImpl[T]
def inputKey[T](description: String): InputKey[T] = macro std.KeyMacro.inputKeyImpl[T]
}
// Todo share this this io.syntax
private[sbt] trait IOSyntax0 extends IOSyntax1 {
implicit def alternative[A, B](f: A => Option[B]): Alternative[A, B] =
new Alternative[A, B] {
def |(g: A => Option[B]) =
(a: A) => f(a) orElse g(a)
}
}
private[sbt] trait Alternative[A, B] {
def |(g: A => Option[B]): A => Option[B]
}
private[sbt] trait IOSyntax1 {
implicit def singleFileFinder(file: File): sbt.io.PathFinder = sbt.io.PathFinder(file)
}

View File

@ -1,6 +1,4 @@
import sbt._
import Keys._
import Import._
import sbt._, syntax._, Keys._
import Def.Initialize
object Marker extends AutoPlugin {

View File

@ -1,5 +1,4 @@
import sbt._
import Import._
import sbt._, syntax._, Keys._
import Def.Initialize
import complete.{DefaultParsers, Parser}

View File

@ -1,5 +1,4 @@
import sbt._
import Import._
import sbt._, syntax._, Keys._
import Def.Initialize
import complete.{DefaultParsers, Parser}

View File

@ -1,4 +1,3 @@
import Import._
import complete.Parser
import complete.DefaultParsers._
import sbinary.DefaultProtocol._

View File

@ -1,8 +1,6 @@
package sbttest // you need package http://stackoverflow.com/questions/9822008/
import sbt._
import Import._
import sbt.Keys.{name, resolvedScoped, organization }
import sbt._, syntax._, Keys._
import java.util.concurrent.atomic.{AtomicInteger => AInt}
object Imports

View File

@ -1,8 +1,6 @@
package sbttest // you need package http://stackoverflow.com/questions/9822008/
import sbt._
import Keys._
import Import._
import sbt._, syntax._, Keys._
object C extends AutoPlugin {
object autoImport {

View File

@ -1,6 +1,4 @@
import sbt._
import Keys._
import Import._
import sbt._, syntax._, Keys._
object Common {
lazy val k1 = taskKey[Unit]("")

View File

@ -11,9 +11,7 @@ import sbt.internal.inc.ModuleUtilities
import java.lang.reflect.{ InvocationTargetException, Method }
import java.util.Properties
import sbt.librarymanagement.Configuration
import sbt.io.{ AllPassFilter, PathFinder }
import sbt.syntax._
object ScriptedPlugin extends AutoPlugin {
override def requires = plugins.JvmPlugin

View File

@ -29,7 +29,7 @@ final class ScriptedTests(resourceBaseDirectory: File, bufferLog: Boolean, launc
def scriptedTest(group: String, name: String, log: Logger): Seq[() => Option[String]] =
scriptedTest(group, name, emptyCallback, log)
def scriptedTest(group: String, name: String, prescripted: File => Unit, log: Logger): Seq[() => Option[String]] = {
import Path._
import sbt.io.syntax._
import GlobFilter._
var failed = false
for (groupDir <- (resourceBaseDirectory * group).get; nme <- (groupDir * name).get) yield {

View File

@ -10,7 +10,7 @@ import java.io.{ Closeable, File, FileInputStream, FileOutputStream, InputStream
import sbt.internal.io.DeferredWriter
import sbt.io.IO
import sbt.io.Path._
import sbt.io.syntax._
import sbt.util.Logger