aboutsummaryrefslogtreecommitdiff
path: root/sbt-bridge/sbt-test/discovery/test-discovery/project
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2016-12-01 23:54:39 +0100
committerGuillaume Martres <smarter@ubuntu.com>2016-12-02 00:58:34 +0100
commit9411539eac8aaa8f052b7e6701d5d1d2b833d409 (patch)
treeed3176c9d3db3b21209866b2372cfadb2ae6b06e /sbt-bridge/sbt-test/discovery/test-discovery/project
parent3d0accd7e172303671be23a2be1d827fc9b4dc6e (diff)
downloaddotty-9411539eac8aaa8f052b7e6701d5d1d2b833d409.tar.gz
dotty-9411539eac8aaa8f052b7e6701d5d1d2b833d409.tar.bz2
dotty-9411539eac8aaa8f052b7e6701d5d1d2b833d409.zip
Fix #1741: sbt.ExtractAPI: extract annotations
This is necessary for correct incremental recompilation but is also used by sbt to find tests to run (for junit they should be annotated @org.junit.Test). I added an sbt scripted test to verify that JUnit now works, to run it: $ sbt > scripted discovery/test-discovery
Diffstat (limited to 'sbt-bridge/sbt-test/discovery/test-discovery/project')
-rw-r--r--sbt-bridge/sbt-test/discovery/test-discovery/project/DottyInjectedPlugin.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/sbt-bridge/sbt-test/discovery/test-discovery/project/DottyInjectedPlugin.scala b/sbt-bridge/sbt-test/discovery/test-discovery/project/DottyInjectedPlugin.scala
new file mode 100644
index 000000000..ec22870f4
--- /dev/null
+++ b/sbt-bridge/sbt-test/discovery/test-discovery/project/DottyInjectedPlugin.scala
@@ -0,0 +1,17 @@
+import sbt._
+import Keys._
+
+object DottyInjectedPlugin extends AutoPlugin {
+ override def requires = plugins.JvmPlugin
+ override def trigger = allRequirements
+
+ override val projectSettings = Seq(
+ scalaVersion := "0.1-SNAPSHOT",
+ scalaOrganization := "ch.epfl.lamp",
+ scalacOptions += "-language:Scala2",
+ scalaBinaryVersion := "2.11",
+ autoScalaLibrary := false,
+ libraryDependencies ++= Seq("org.scala-lang" % "scala-library" % "2.11.5"),
+ scalaCompilerBridgeSource := ("ch.epfl.lamp" % "dotty-sbt-bridge" % "0.1.1-SNAPSHOT" % "component").sources()
+ )
+}