Merge pull request #4406 from eatkins/bump-io

Bump io
This commit is contained in:
eugene yokota 2018-10-08 23:39:40 -04:00 committed by GitHub
commit 082d1767a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 11 additions and 12 deletions

View File

@ -459,6 +459,8 @@ lazy val commandProj = (project in file("main-command"))
name := "Command",
libraryDependencies ++= Seq(launcherInterface, sjsonNewScalaJson.value, templateResolverApi),
Compile / scalacOptions += "-Ywarn-unused:-locals,-explicits,-privates",
// Removing -Xfatal-warnings is necessary because BasicKeys contains a Key for a deprecated class.
Compile / scalacOptions -= "-Xfatal-warnings",
managedSourceDirectories in Compile +=
baseDirectory.value / "src" / "main" / "contraband-scala",
sourceManaged in (Compile, generateContrabands) := baseDirectory.value / "src" / "main" / "contraband-scala",

View File

@ -125,8 +125,8 @@ private[sbt] object ForkTests {
acceptorThread.start()
val fullCp = classpath ++: Seq(
IO.classLocationFile[ForkMain],
IO.classLocationFile[Framework]
IO.classLocationPath[ForkMain].toFile,
IO.classLocationPath[Framework].toFile
)
val options = Seq(
"-classpath",

View File

@ -69,7 +69,7 @@ final class Eval(
backing: Option[File]
) {
def this(mkReporter: Settings => Reporter, backing: Option[File]) =
this(Nil, IO.classLocationFile[Product] :: Nil, mkReporter, backing)
this(Nil, IO.classLocationPath[Product].toFile :: Nil, mkReporter, backing)
def this() = this(s => new ConsoleReporter(s), None)
backing.foreach(IO.createDirectory)

View File

@ -42,7 +42,7 @@ private[sbt] object SbtParser {
""".stripMargin
private final val defaultClasspath =
sbt.io.Path.makeString(sbt.io.IO.classLocationFile[Product] :: Nil)
sbt.io.Path.makeString(sbt.io.IO.classLocationPath[Product].toFile :: Nil)
/**
* Provides the previous error reporting functionality in

View File

@ -8,7 +8,6 @@
package sbt
import org.specs2.mutable.Specification
import sbt.BuildPaths
object BuildPathsTest extends Specification {

View File

@ -9,7 +9,7 @@ object Dependencies {
val baseScalaVersion = scala212
// sbt modules
private val ioVersion = "1.2.1"
private val ioVersion = "1.3.0-M3"
private val utilVersion = "1.3.0-M2"
private val lmVersion = "1.2.1"
private val zincVersion = "1.2.2"

View File

@ -31,8 +31,8 @@ object ForkTest extends Properties("Fork") {
lazy val genRelClasspath = nonEmptyListOf(path)
lazy val requiredEntries =
IO.classLocationFile[scala.Option[_]] ::
IO.classLocationFile[sbt.exit.type] ::
IO.classLocationPath[scala.Option[_]].toFile ::
IO.classLocationPath[sbt.exit.type].toFile ::
Nil
lazy val mainAndArgs =
"sbt.exit" ::

View File

@ -1,5 +1,3 @@
> debug
> checkNext 1 2
> checkNext 2 3
> checkNext 3 5

View File

@ -278,7 +278,7 @@ final class ScriptedTests(
| def setUpScripted = Command.command("setUpScripted") { (state0: State) =>
| val nameScriptedSetting = name.in(LocalRootProject).:=(
| if (name.value.startsWith("sbt_")) "$testName" else name.value)
| val state1 = Project.extract(state0).append(nameScriptedSetting, state0)
| val state1 = Project.extract(state0).appendWithoutSession(nameScriptedSetting, state0)
| "initialize" :: state1
| }
|}

View File

@ -250,7 +250,7 @@ object TestFramework {
scalaInstance: ScalaInstance,
tempDir: File
): ClassLoader = {
val interfaceJar = IO.classLocationFile(classOf[testing.Framework])
val interfaceJar = IO.classLocationPath(classOf[testing.Framework]).toFile
val interfaceFilter = (name: String) =>
name.startsWith("org.scalatools.testing.") || name.startsWith("sbt.testing.")
val notInterfaceFilter = (name: String) => !interfaceFilter(name)