Skip to content

Commit 0c0edb6

Browse files
committed
use slash style consistently in build definition
1 parent 48f972f commit 0c0edb6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

build.sbt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +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 + "> " },
9+
ThisBuild / shellPrompt := { state => Project.extract(state).currentRef.project + "> " },
1010
libraryDependencies ++= Seq(
1111
"org.scalatest" %% "scalatest-flatspec" % "3.2.0" % Test,
1212
"org.scalatest" %% "scalatest-shouldmatchers" % "3.2.0" % Test,
1313
),
1414
// Adds a `src/main/scala-2.13+` source directory for Scala 2.13 and newer
1515
// and a `src/main/scala-2.13-` source directory for Scala version older than 2.13
16-
unmanagedSourceDirectories in Compile += {
17-
val sourceDir = (sourceDirectory in Compile).value
16+
Compile / unmanagedSourceDirectories += {
17+
val sourceDir = (Compile / sourceDirectory).value
1818
CrossVersion.partialVersion(scalaVersion.value) match {
1919
case Some((2, n)) if n >= 13 => sourceDir / "scala-2.13+"
2020
case _ => sourceDir / "scala-2.13-"
@@ -25,15 +25,15 @@ lazy val swing = project.in(file("."))
2525
lazy val examples = project.in(file("examples"))
2626
.dependsOn(swing)
2727
.settings(
28-
scalaVersion := (scalaVersion in swing).value,
29-
fork in run := true,
28+
scalaVersion := (swing / scalaVersion).value,
29+
run / fork := true,
3030
fork := true
3131
)
3232

3333
lazy val uitest = project.in(file("uitest"))
3434
.dependsOn(swing)
3535
.settings(
36-
scalaVersion := (scalaVersion in swing).value,
37-
fork in run := true,
36+
scalaVersion := (swing / scalaVersion).value,
37+
run / fork := true,
3838
fork := true
3939
)

0 commit comments

Comments
 (0)