Skip to content

softprops/bazel-java-scala

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages

  • Python 44.9%
  • Shell 29.5%
  • Java 18.0%
  • Scala 7.6%