/bazel-java-scala

Demo project for building a mixed Scala and Java project with Bazel

Primary LanguagePythonMIT LicenseMIT

Scala/Java Bazel test

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

Requirements

  • Bazel 0.3.1

  • Compatible operating system with above, OSX/Linux

Nice to haves:

Building

bazel build //...

Dependency Graphs

Want to create some bad-ass project dependency diagrams? Install graphiz (OSX: brew install graphviz)

./scripts/dependency-graph.sh

Running the application

bazel run //:ScalaMain

Running the unit tests

bazel test //...

Author(s)

Stewart Henderson henderson.geoffrey@gmail.com