r/JavaProgramming • u/Tristan_Kruse • 2d ago
ArchUnitJava 1.0: architecture policies over compiled code, with evidence for CI
“This package must not depend on persistence” is more useful as a failing test than a review reminder.
I work on ArchUnitJava. Version 1.0 is published on Maven Central:
`io.github.tristankruse:archunitjava:1.0.0`.
- Reads class directories and JARs without initializing the target classes.
- Checks dependency and cycle policies, with structured evidence behind failures.
- Runs through JUnit and can emit JSON, SARIF or JUnit XML for CI.
It requires DK 25 to run; compile the target before analyzing it. This is an independently
implemented project, not the original ArchUnit, not affiliated with it, and not a drop-in replacement.
[Source, quickstart and release record](https://github.com/dragonsec-ai/ArchUnitJava)
Writing assisted by AI.