Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 1.63 KB

DEVELOPMENT.md

File metadata and controls

46 lines (27 loc) · 1.63 KB

Requirements

Code Style

This project adheres to Google Java Style and uses Checkstyle for validating code style.

Run mvn --activate-profiles=checkstyle verify to execute Checkstyle.

Use google_checks.xml for configuring your IDE's inspection and formatting settings.

Static Code Analysis

This project uses SpotBugs for static code analysis.

Run mvn --activate-profiles=spotbugs verify to execute SpotBugs.

Testing

Run mvn --activate-profiles=coverage verify to execute all tests and to assert code coverage requirements are met.

Building

Run mvn --activate-profiles=checkstyle,spotbugs,coverage verify to build all modules, execute all tests and run all checks.

Run mvn --activate-profiles=-examples install to install the main artifacts into the local repository.

Code Generation

The code for the hamcrest-mail-jakarta and hamcrest-mail-examples-jakarta modules is “generated” from their non-Jakarta counterparts by copying source files and substituting “jakarta.mail” for “javax.mail”.

Checking for Dependency Updates

Run mvn versions:display-dependency-updates to check for dependency updates.

Checking for Plug-in Updates

Run mvn --activate-profiles=checkstyle,spotbugs,coverage,release -DprocessUnboundPlugins=true versions:display-plugin-updates to check for Maven plug-in updates.