@@ -6,12 +6,15 @@ lazy val swing = project.in(file("."))
66 OsgiKeys .exportPackage := Seq (s " scala.swing.*;version= ${version.value}" ),
77 scalaModuleMimaPreviousVersion := Some (" 2.1.0" ),
88 // set the prompt (for this build) to include the project id.
9- shellPrompt in ThisBuild := { state => Project .extract(state).currentRef.project + " > " },
10- libraryDependencies += " org.scalatest" %% " scalatest" % " 3.0.8" % Test ,
9+ ThisBuild / shellPrompt := { state => Project .extract(state).currentRef.project + " > " },
10+ libraryDependencies ++= Seq (
11+ " org.scalatest" %% " scalatest-flatspec" % " 3.2.0" % Test ,
12+ " org.scalatest" %% " scalatest-shouldmatchers" % " 3.2.0" % Test ,
13+ ),
1114 // Adds a `src/main/scala-2.13+` source directory for Scala 2.13 and newer
1215 // and a `src/main/scala-2.13-` source directory for Scala version older than 2.13
13- unmanagedSourceDirectories in Compile += {
14- val sourceDir = (sourceDirectory in Compile ).value
16+ Compile / unmanagedSourceDirectories += {
17+ val sourceDir = (Compile / sourceDirectory ).value
1518 CrossVersion .partialVersion(scalaVersion.value) match {
1619 case Some ((2 , n)) if n >= 13 => sourceDir / " scala-2.13+"
1720 case _ => sourceDir / " scala-2.13-"
@@ -22,15 +25,15 @@ lazy val swing = project.in(file("."))
2225lazy val examples = project.in(file(" examples" ))
2326 .dependsOn(swing)
2427 .settings(
25- scalaVersion := (scalaVersion in swing ).value,
26- fork in run := true ,
28+ scalaVersion := (swing / scalaVersion ).value,
29+ run / fork := true ,
2730 fork := true
2831 )
2932
3033lazy val uitest = project.in(file(" uitest" ))
3134 .dependsOn(swing)
3235 .settings(
33- scalaVersion := (scalaVersion in swing ).value,
34- fork in run := true ,
36+ scalaVersion := (swing / scalaVersion ).value,
37+ run / fork := true ,
3538 fork := true
3639 )
0 commit comments