summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2017-12-28 08:38:18 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2017-12-28 08:38:18 -0800
commit02522c54bc94bb3799256173394d8af0821864a9 (patch)
tree2c132270a24c614ea9132cfd3cc772cdae54f3eb /build.sbt
parent40104303cdc1e8bf05010b29a4213cd1369fb175 (diff)
downloadmill-02522c54bc94bb3799256173394d8af0821864a9.tar.gz
mill-02522c54bc94bb3799256173394d8af0821864a9.tar.bz2
mill-02522c54bc94bb3799256173394d8af0821864a9.zip
get --repl working with bin/test:run
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt6
1 files changed, 5 insertions, 1 deletions
diff --git a/build.sbt b/build.sbt
index a15acc5a..7874c894 100644
--- a/build.sbt
+++ b/build.sbt
@@ -135,7 +135,11 @@ lazy val bin = project
.dependsOn(scalaplugin)
.settings(
sharedSettings,
- mainClass in (Compile, run) := Some("mill.Main"),
+ fork := true,
+ connectInput in (Test, run) := true,
+ outputStrategy in (Test, run) := Some(StdoutOutput),
+ mainClass in (Test, run) := Some("mill.Main"),
+ baseDirectory in (Test, run) := (baseDirectory in (Compile, run)).value / "..",
assemblyOption in assembly := {
(assemblyOption in assembly).value.copy(
prependShellScript = Some(