@@ -4,18 +4,18 @@ ScalaModulePlugin.scalaModuleOsgiSettings
44name := " scala-async"
55
66libraryDependencies += " org.scala-lang" % " scala-reflect" % scalaVersion.value % " provided"
7- libraryDependencies += " junit" % " junit" % " 4.12 " % " test "
8- libraryDependencies += " com.novocode" % " junit-interface" % " 0.11" % " test "
7+ libraryDependencies += " junit" % " junit" % " 4.13.1 " % Test
8+ libraryDependencies += " com.novocode" % " junit-interface" % " 0.11" % Test
99
1010ScalaModulePlugin .enableOptimizer
1111testOptions += Tests .Argument (TestFrameworks .JUnit , " -q" , " -v" , " -s" )
12- scalacOptions in Test ++= Seq (" -Yrangepos" )
12+ Test / scalacOptions ++= Seq (" -Yrangepos" )
1313scalacOptions ++= List (" -deprecation" , " -Xasync" )
1414
15- parallelExecution in Global := false
15+ Global / parallelExecution := false
1616
1717// Uncomment to disable test compilation.
18- // (sources in Test) ~= ((xs: Seq[File]) => xs.filter(f => Seq("TreeInterrogation", "package").exists(f.name.contains)))
18+ // Test / sources ~= ((xs: Seq[File]) => xs.filter(f => Seq("TreeInterrogation", "package").exists(f.name.contains)))
1919
2020description := " An asynchronous programming facility for Scala that offers a direct API for working with Futures."
2121homepage := Some (url(" http://github.com/scala/async" ))
@@ -47,16 +47,16 @@ commands += testDeterminism
4747def testDeterminism = Command .command(" testDeterminism" ) { state =>
4848 val extracted = Project .extract(state)
4949 println(" Running test:clean" )
50- val (state1, _) = extracted.runTask(clean in Test in LocalRootProject , state)
50+ val (state1, _) = extracted.runTask(LocalRootProject / Test / clean , state)
5151 println(" Running test:compile" )
52- val (state2, _) = extracted.runTask(compile in Test in LocalRootProject , state1)
53- val testClasses = extracted.get(classDirectory in Test )
52+ val (state2, _) = extracted.runTask(LocalRootProject / Test / compile , state1)
53+ val testClasses = extracted.get(Test / classDirectory )
5454 val baseline : File = testClasses.getParentFile / (testClasses.getName + " -baseline" )
5555 baseline.mkdirs()
5656 IO .copyDirectory(testClasses, baseline, overwrite = true )
5757 IO .delete(testClasses)
5858 println(" Running test:compile" )
59- val (state3, _) = extracted.runTask(compile in Test in LocalRootProject , state2)
59+ val (state3, _) = extracted.runTask(LocalRootProject / Test / compile , state2)
6060
6161 import java .nio .file .FileVisitResult
6262 import java .nio .file .{Files , Path }
0 commit comments