diff --git a/sbt/src/sbt-test/project/global-plugin/changes/Build.scala b/sbt/src/sbt-test/project/global-plugin/changes/Build.scala deleted file mode 100644 index 13ba8e7af..000000000 --- a/sbt/src/sbt-test/project/global-plugin/changes/Build.scala +++ /dev/null @@ -1,21 +0,0 @@ -import sbt._ -import Import._ -import sbt.Keys._ - -object MyBuild extends Build { - lazy val mySettings = Defaults.defaultSettings ++ Seq( - name := "my-test-proj", - organization := "com.example", - check <<= update map checkVersion, - version := "0.1.0-SNAPSHOT") - - lazy val proj = Project("my-test-proj", file("."), settings = mySettings) - - lazy val check = taskKey[Unit]("Verifies that the junit dependency has the newer version (4.8)") - - def checkVersion(report: UpdateReport): Unit = { - for(mod <- report.allModules) { - if(mod.name == "junit") assert(mod.revision == "4.8", s"JUnit version (${mod.revision}) does not have the correct version") - } - } -} diff --git a/sbt/src/sbt-test/project/global-plugin/changes/build.sbt b/sbt/src/sbt-test/project/global-plugin/changes/build.sbt new file mode 100644 index 000000000..0ed1660fb --- /dev/null +++ b/sbt/src/sbt-test/project/global-plugin/changes/build.sbt @@ -0,0 +1,15 @@ +lazy val check = taskKey[Unit]("Verifies that the junit dependency has the newer version (4.8)") + +lazy val proj = (project in file(".")). + settings( + name := "my-test-proj", + organization := "com.example", + check <<= update map checkVersion, + version := "0.1.0-SNAPSHOT" + ) + +def checkVersion(report: UpdateReport): Unit = { + for(mod <- report.allModules) { + if(mod.name == "junit") assert(mod.revision == "4.8", s"JUnit version (${mod.revision}) does not have the correct version") + } +} diff --git a/sbt/src/sbt-test/project/global-plugin/project/Build.scala b/sbt/src/sbt-test/project/global-plugin/project/Test.scala similarity index 100% rename from sbt/src/sbt-test/project/global-plugin/project/Build.scala rename to sbt/src/sbt-test/project/global-plugin/project/Test.scala diff --git a/sbt/src/sbt-test/project/global-plugin/test b/sbt/src/sbt-test/project/global-plugin/test index f5ab8b106..cda5fc4b3 100644 --- a/sbt/src/sbt-test/project/global-plugin/test +++ b/sbt/src/sbt-test/project/global-plugin/test @@ -1,4 +1,4 @@ -$ copy-file changes/Build.scala project/Build.scala +$ copy-file changes/build.sbt build.sbt > reload # ensure that a new global dependency gets picked up