A simple example of a Scala multi-module project configured to build using Bazel.
Including:
- A main class
foo.FooRunner
- A library
foo
which depends on librarybar
- An external dependency (ScalaTest)
- A test
foo.FooTest
Feedback / pull requests welcome.
bazel test //...
bazel run runner
Or, once built using Bazel, call the generated run-script:
bazel-bin/runner
bazel build repl
bazel-bin/repl
bazel query --nohost_deps --noimplicit_deps 'deps(//...)' --output graph > graph.dot
dot graph.dot -Tpng -o graph.png