Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 977 Bytes

README.md

File metadata and controls

40 lines (28 loc) · 977 Bytes

Maven Java application

This project demonstrates the usage of Bazel to retrieve dependencies from Maven repositories, build a program, and place it in an OCI container.

To build this example, you will need to install Bazel.

The Java application makes use of a library in Guava, which is downloaded from a remote repository using Maven.

This application demonstrates the usage of rules_jvm_external to configure dependencies. The dependencies are configured in the WORKSPACE file.

Build the application by running:

$ bazel build :java-maven

Test the application by running:

$ bazel test :tests

Create a container image, suitable to push to a remote docker registry:

$ bazel build :image

Test that the image works when running inside a container runtime:

$ bazel test :container_test