Reference
| This documentation was generated with the assistance of AI. Please report any inaccuracies. |
The Documentation workflow (.github/workflows/docs.yml) rebuilds and tests the whole reactor on every push to
main, generates the Maven site and publishes it to GitHub Pages next to this documentation, so the reports below
always describe the latest main. SonarCloud analyses every push and pull request when the SONAR_TOKEN secret is
set (organization albertoirurueta, project albertoirurueta_irurueta-auth-server).
Generated Reports
| Report | Description |
|---|---|
API reference of every module in one place, generated by the Maven Javadoc plugin ( |
|
Coverage of unit and integration tests aggregated over every module by the |
|
Unit ( |
|
Checkstyle, PMD, CPD, SpotBugs |
Static analysis results, one set per module (shown for |
Browsable, line-numbered sources that the reports above link to. |
|
The OpenAPI contract |
|
The OpenAPI contract |
|
The OpenAPI contract of |
|
The OpenAPI contract of the BFF’s endpoints ( |
|
Aggregation of the project reports and project information of every module (Modules menu). |
|
Project quality dashboard: issues, code smells and coverage. |
|
Source code repository of the project. |
Generating the reports locally
./mvnw verify writes the raw results (<module>/target/surefire-reports/, failsafe-reports/, site/jacoco/,
checkstyle-result.xml, pmd.xml, spotbugsXml.xml and coverage/target/site/jacoco-aggregate/). For the browsable
site exactly as it is published, run:
./mvnw install
./mvnw site site:stage -DskipTests # written to target/staging
The aggregated Javadoc resolves the modules from the local repository, which is why the build runs install first.
Configuration properties
Every configuration property of the four applications, with its environment variable, its default and the profile where it applies, is listed in Configuration, together with the Spring profiles and the values that must come from the environment only.
Build gates
./mvnw -B clean verify fails when any of these fails:
| Gate | Rule |
|---|---|
Checkstyle |
|
PMD and CPD |
Static analysis and copy-paste detection, at |
SpotBugs |
|
JaCoCo |
80% line and 70% branch coverage on the bundle aggregated by the |
Enforcer |
Java |
ArchUnit |
|
SonarCloud
The Build and test workflow runs ./mvnw -B -ntp sonar:sonar after verify when the SONAR_TOKEN secret is set. The
project properties (sonar.organization, sonar.projectKey, sonar.host.url and the aggregated JaCoCo report path)
live in the root pom.xml. That workflow never deploys anything; only the Documentation workflow publishes, and
only the documentation.
Links
-
Irurueta Docs, where the step-by-step guide built on this example is published