1# Development Setup 2 3You need Java 11 or higher to run the build. The build produces Java 8-compatible 4bytecode. 5 6Install [`bazelisk`](https://github.com/bazelbuild/bazelisk) in your `PATH` 7for gapic-generator-java's Bazel build. 8 9## Set Up 10 111. Clone this repo. 12 132. (OPTIONAL) Copy the Git pre-commit hooks. This will automatically check the build, run 14 tests, and perform linting before each commit. (Symlinks don't seem to work, 15 but if you find a way, please add it here!) 16 17 ```sh 18 cp .githooks/pre-commit .git/hooks/pre-commit 19 ``` 20 21## Run Tests for All Modules 22 23- Run all unit tests in all modules. 24 25 ```sh 26 mvn install 27 ``` 28 29## Code Formatting 30 31- Run linter checks without actually doing the formatting. 32 33 ```sh 34 mvn fmt:check 35 ``` 36 37- Format files. 38 39 ```sh 40 mvn fmt:format 41 ```