You need Java 11 or higher to run the build. The build produces Java 8-compatible bytecode.
Install bazelisk
in your PATH
for gapic-generator-java's Bazel build.
Clone this repo.
(OPTIONAL) Copy the Git pre-commit hooks. This will automatically check the build, run tests, and perform linting before each commit. (Symlinks don't seem to work, but if you find a way, please add it here!)
cp .githooks/pre-commit .git/hooks/pre-commit
Run all unit tests in all modules.
mvn install
Run linter checks without actually doing the formatting.
mvn fmt:check
Format files.
mvn fmt:format