Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Commit 23bfa69

Browse files
committed
Merge pull request scala#4535 from retronym/topic/sbt-repl
[sbt] Allow the REPL to be run from the SBT build
2 parents 7de0815 + 0bc7146 commit 23bfa69

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.sbt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,12 @@ lazy val interactive = configureAsSubproject(project)
192192
.dependsOn(compiler)
193193

194194
lazy val repl = configureAsSubproject(project)
195-
.settings(libraryDependencies += jlineDep)
195+
.settings(
196+
libraryDependencies += jlineDep,
197+
connectInput in run := true,
198+
outputStrategy in run := Some(StdoutOutput),
199+
run <<= (run in Compile).partialInput(" -usejavacp") // Automatically add this so that `repl/run` works without additional arguments.
200+
)
196201
.settings(disableDocsAndPublishingTasks: _*)
197202
.dependsOn(compiler)
198203

0 commit comments

Comments
 (0)