https://github.com/ryanmcdermott/bazel-java-template
Simple starter template for a Java project built with Bazel
https://github.com/ryanmcdermott/bazel-java-template
Last synced: 5 months ago
JSON representation
Simple starter template for a Java project built with Bazel
- Host: GitHub
- URL: https://github.com/ryanmcdermott/bazel-java-template
- Owner: ryanmcdermott
- Created: 2020-07-07T01:33:47.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-07T03:19:07.000Z (almost 6 years ago)
- Last Synced: 2024-10-21T21:05:21.873Z (over 1 year ago)
- Language: Starlark
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bazel-java-template
## What is this?
This project is a simple starter template for a Java project that uses the [Bazel build system](https://www.bazel.build/).
## Installation
First, ensure that you have [installed Bazel](https://docs.bazel.build/versions/3.2.0/install.html). Then run the following:
```
export JAVA_HOME="$(dirname $(dirname $(realpath $(which javac))))"
git clone https://github.com/ryanmcdermott/bazel-java-template
```
## Running
### Main
```
bazel run :template_bin
```
### Tests
```
bazel test :template_lib_test
```