Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Latest commit

 

History

History
25 lines (21 loc) · 580 Bytes

scala_repl.md

File metadata and controls

25 lines (21 loc) · 580 Bytes

scala_repl

scala_repl(
    name,
    deps,
    scalacopts,
    jvm_flags,
    scalac_jvm_flags,
    javac_jvm_flags,
    unused_dependency_checker_mode
)

scala_repl allows you to add library dependencies (but not currently scala_binary targets) and then generate a script which starts a REPL.

Since bazel run closes stdin, it cannot be used to start a REPL. Instead, use bazel build to build the script, then run that script as normal to start a REPL session.

An example in this repo:

bazel build test:HelloLibRepl
bazel-bin/test/HelloLibRepl