Skip to the content
Krizaka Java
Skip to Content
Krizaka Java

Build, parent and BOM

krizaka-parent, krizaka-bom and krizaka-test-support — one build for every Krizaka JVM artifact.

Krizaka Java holds the parent POM, the BOM and the test kit behind every com.krizaka artifact.

ArtifactRole
com.krizaka:krizaka-parentRelease metadata, Java 21, google-java-format checked at validate, unit (Surefire) and integration (Failsafe, *IT) tests, JaCoCo, an enforced toolchain, the release profile.
com.krizaka:krizaka-bomEvery com.krizaka artifact at the release each repository was tested with — the compatible set. It pins no third-party version Spring Boot manages (JSpecify, the nullness annotations, is the one entry).
com.krizaka:krizaka-test-supportGovernance rules (CodeRules, SourceRules, ConfigBindingRules), AbstractContainerIntegrationTest (one shared PostgreSQL + RabbitMQ per run) and Testcontainers roles.

Use the BOM

<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>com.krizaka</groupId>
      <artifactId>krizaka-bom</artifactId>
      <version>0.13.0</version>
      <type>pom</type>
      <scope>import</scope>
    </dependency>
  </dependencies>
</dependencyManagement>

The BOM carries Krizaka artifacts (and JSpecify): importing it never pins a Spring version you did not choose. The artifacts are built and tested against Spring Boot 4.0.x.

Build a repository on the parent

<parent>
  <groupId>com.krizaka</groupId>
  <artifactId>krizaka-parent</artifactId>
  <version>0.13.0</version>
  <relativePath/>
</parent>
CommandWhat runs
./mvnw verifyformatting check, compile with -Xlint:all, unit and integration tests, coverage
./mvnw spotless:applyformats the sources
./mvnw verify -Prelease -Dgpg.skipeverything a public release requires except the signature, plus binary compatibility (japicmp)

Code rules

Three tools hold the rules of ADR-015, each with a ratchet: what exists today is recorded, a new violation fails, the debt only shrinks.

ToolRuleExisting debt kept in
NullAway (krizaka-nullaway profile of the parent, on by default; -Dkrizaka.nullaway.skip=true turns it off)every package marked @NullMarked (JSpecify) is checked; marking a package is the ratchetthe packages still to mark (AuditRules.everyPackageNullMarkedRule(), frozen)
PMD (krizaka-quality)cyclomatic complexity 10, NPath 200, nested ifs 3; no else-if ladder over strings, no switch over a String, no error body built by a catch in a controllerpmd-baseline.properties
ArchUnit (AuditRules of krizaka-test-support, frozen with FrozenRules)controllers do not reach persistence, no *Utils / *Helper, every @RequestBody DTO is @Valid, fields of Spring beans are finalarchunit_store/

A module that declares its own annotation processors (MapStruct, Lombok) repeats Error Prone and NullAway in its annotationProcessorPaths.

Releases

Each repository has its own SemVer version; pull request titles are Conventional Commits and release-please keeps a release pull request open. A POM is validated against its parent, so krizaka-java is released first, then the service kit, then the domain services. Builds go to our own Maven repository; a public release is confirmed by hand and announced.

On this page