Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 823 Bytes

DEVELOPMENT.md

File metadata and controls

41 lines (27 loc) · 823 Bytes

Development Setup

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.

Set Up

  1. Clone this repo.

  2. (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 Tests for All Modules

  • Run all unit tests in all modules.

    mvn install

Code Formatting

  • Run linter checks without actually doing the formatting.

    mvn fmt:check
  • Format files.

    mvn fmt:format