summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2017-11-05 21:06:51 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2017-11-05 21:06:51 -0800
commit27b1a0b18dab64ef56202bda91f741586487edc3 (patch)
treefbe96ea200dbb8796be7cebf54fd456a52d537ee /build.sbt
parent7a6c80301fa5f405f1d9ffca2776b19cf9a29b9a (diff)
downloadmill-27b1a0b18dab64ef56202bda91f741586487edc3.tar.gz
mill-27b1a0b18dab64ef56202bda91f741586487edc3.tar.bz2
mill-27b1a0b18dab64ef56202bda91f741586487edc3.zip
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
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt10
1 files changed, 9 insertions, 1 deletions
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