From 27b1a0b18dab64ef56202bda91f741586487edc3 Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Sun, 5 Nov 2017 21:06:51 -0800 Subject: Forked `ammonite.main.Router` into `forge.discover.Router`, to let us generate routes purely based on a type `T`, as part of the target discovery process. We defer the need for a concrete value of type `T` later until we need to evaluate the route. Eventually this should go upstream into ammonite itself, but forking is easier for now --- build.sbt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'build.sbt') diff --git a/build.sbt b/build.sbt index cb233365..c0f04fb2 100644 --- a/build.sbt +++ b/build.sbt @@ -18,7 +18,15 @@ val sharedSettings = Seq( libraryDependencies += "com.lihaoyi" %% "acyclic" % "0.1.7" % "provided", scalacOptions += "-P:acyclic:force", autoCompilerPlugins := true, - addCompilerPlugin("com.lihaoyi" %% "acyclic" % "0.1.7") + addCompilerPlugin("com.lihaoyi" %% "acyclic" % "0.1.7"), + libraryDependencies += "com.lihaoyi" % "ammonite" % "1.0.3" % "test" cross CrossVersion.full, + + sourceGenerators in Test += Def.task { + val file = (sourceManaged in Test).value / "amm.scala" + IO.write(file, """object amm extends App { ammonite.Main().run() }""") + Seq(file) + }.taskValue + ) lazy val core = project -- cgit v1.2.3