diff --git a/sbt-app/src/sbt-test/project1/remove/build.sbt b/sbt-app/src/sbt-test/project/remove/build.sbt similarity index 81% rename from sbt-app/src/sbt-test/project1/remove/build.sbt rename to sbt-app/src/sbt-test/project/remove/build.sbt index 5a16e59d8..dced9b812 100644 --- a/sbt-app/src/sbt-test/project1/remove/build.sbt +++ b/sbt-app/src/sbt-test/project/remove/build.sbt @@ -4,7 +4,7 @@ val intsFromScalaV = settingKey[Seq[Int]]("a seq of ints from scalaVersion") val intsSetSetting = settingKey[Set[Int]]("A set of ints setting") val stringIntMapSetting = settingKey[Map[String, Int]]("A map of string to int setting") -scalaVersion := "2.11.6" +scalaVersion := "3.7.2" intsTask := Seq(1, 2, 3, 4, 5, 6, 7) intsTask -= 3 @@ -19,10 +19,10 @@ intsSetting -= Option(6) intsSetting --= Option(7) intsFromScalaV := Seq(1, 2, 3, 4, 5, 6, 7) -intsFromScalaV -= { if (scalaVersion.value == "2.11.6") 3 else 5 } -intsFromScalaV --= { if (scalaVersion.value == "2.11.6") Seq(1, 2) else Seq(4) } -intsFromScalaV -= { if (scalaVersion.value == "2.11.6") Option(6) else None } -intsFromScalaV --= { if (scalaVersion.value == "2.11.6") Option(7) else None } +intsFromScalaV -= { if scalaVersion.value == "3.7.2" then 3 else 5 } +intsFromScalaV --= { if scalaVersion.value == "3.7.2" then Seq(1, 2) else Seq(4) } +intsFromScalaV -= { if scalaVersion.value == "3.7.2" then Option(6) else None } +intsFromScalaV --= { if scalaVersion.value == "3.7.2" then Option(7) else None } intsSetSetting := Set(1, 2, 3, 4, 5, 6, 7) intsSetSetting -= 3 @@ -32,7 +32,9 @@ stringIntMapSetting := Map("a" -> 1, "b" -> 2 , "c" -> 3, "d" -> 4, "e" -> 5) stringIntMapSetting -= "c" stringIntMapSetting --= Seq("a", "b") +@transient val check = taskKey[Unit]("Runs the check") + check := { assert(intsTask.value == Seq(4, 5), s"intsTask should be Seq(4, 5) but is ${intsTask.value}") assert(intsSetting.value == Seq(4, 5), s"intsSetting should be Seq(4, 5) but is ${intsSetting.value}") diff --git a/sbt-app/src/sbt-test/project1/remove/test b/sbt-app/src/sbt-test/project/remove/test similarity index 100% rename from sbt-app/src/sbt-test/project1/remove/test rename to sbt-app/src/sbt-test/project/remove/test