Ensure your development environment has:
- JDK 1.8 (Java 8)
- Maven 3.x
After cloning the project, run in the project root:
+mvn clean install
IntelliJ IDEA is recommended. When importing the project, select import as a Maven project.
This project follows Google Java Style guidelines. In IntelliJ IDEA:
- Install the google-java-format plugin
- Enable google-java-format in settings
You can run following command on the terminal to format code:
mvn spotless:apply
We use the Maven spotless plugin to ensure code quality. The project is configured to run checks automatically before each commit.
To manually format code, run:
mvn spotless:apply
This project uses Maven for dependency management. To add new dependencies, modify the build.gradle
file.
Example:
<dependency>
<groupId>com.example</groupId>
<artifactId>example</artifactId>
<version>version</version>
</dependency>
Make sure to run tests before committing:
mvn -pl api test jacoco:report