This codebase provides a Bazel build that demonstrates how to build a mixed Scala and Java codebase. This project creates three items:
-
A Java library that depends on external Maven libraries
-
A Scala library that depends upon the Java library above
-
A Scala binary that depends upon both the Scala and Java library
-
Bazel 0.3.1
-
Compatible operating system with above, OSX/Linux
-
IntelliJ
-
Bazel IntelliJ plugin, thats what the .bazelproject file is for.
bazel build //...
Want to create some bad-ass project dependency diagrams? Install graphiz
(OSX: brew install graphviz
)
./scripts/dependency-graph.sh
bazel run //:ScalaMain
bazel test //...
Stewart Henderson henderson.geoffrey@gmail.com