Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 767 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 767 Bytes

Bazel Play example

Bazel setup

Install Bazelisk

Download latest Bazelisk release: https://github.com/bazelbuild/bazelisk/releases. Install it locally as "bazel" e.g. in ~/bin/bazel and ensure it's executable.

It will automatically download and start the bazel version specified in .bazelversion.

Basic commands

  • bazel build //... - builds all targets
  • bazel test //... - tests all targets
  • bazel coverage //... - runs tests with coverage support for all targets
  • bazel run //app:service - runs the Play service

Dependencies

See the rules_jvm_external README for info on how to use the dependencies.

You will want to regenerate maven-install.json after changing dependencies with:

bazel run @unpinned_maven//:pin