Repository navigation
0.4.0 (2026-11-24)
At a glance:
⚠️ Breaking changes
Warning
core: detect CI on Jenkins and TeamCity; catch more rule bypasses — Jenkins, TeamCity and other CI systems that do not set CI now count as CI, so an external rule that cannot run fails the build there. Built-in rules now catch method references, calls through subclasses and composed JUnit annotations. (#69)
- If your CI system is listed in
docs/configuration.md#how-ci-is-detectedand does not setCI, provide the variables your external rules need, such as the TestRail or TestPlanIt credentials, for the CI build. - If the service may be unreachable from CI and a skip is acceptable, pass
-Darchgate.ci.serviceUnavailable=skip. - To keep the old lenient behaviour on purpose, pass
-Darchgate.ci=false(Gradle:-Parchgate.ci=false). - Builds run on a machine that carries one of the listed variables, such as a Jenkins or TeamCity agent image used locally, now get CI behaviour. Pass
archgate.ci=falseto force local behaviour;CI=falseis not enough. - Expect new findings in these cases:
NoThreadSleepRule:Thread::sleep,TimeUnit.X::sleep, an unqualifiedsleep(..)in aThreadsubclass,SubThread.sleep(..).NoConsoleOutputRule:Thread::dumpStack,Throwable::printStackTrace, an unqualifieddumpStack()in aThreadsubclass.NoDeprecatedApiUsageRule: method and constructor references to deprecated members or signatures.NoDisabledTestsRule: tests disabled through a composed@Disabled.TestAssertionsRuleandTestClassNamingRule: tests marked by a composed JUnit@Test.
Warning
gradle: gate no longer passes without checking anything — The Gradle plugin no longer passes without checking anything. It now scans sibling classes compiled by the Groovy, Scala or Kotlin plugins, fails when applied without the java plugin, and deletes the previous report when the gate is skipped. (#71)
-
A project that sets
archgate { rootPackage … }ormodules(...)without thejavaplugin (for example abase-only root or an Android module) now fails at configuration withapplies dev.quokkify.archgate but not the java plugin. Apply the plugin withjavain the project whosesrc/test/resourceslists the rules, and list other projects inarchgate { modules(...) }. If the project only configures the plugin for others, setarchgate { skip = true }in it;-Parchgate.skip=trueskips the gate in every project. -
If you apply the plugin to every subproject, apply it only where
javais:subprojects { plugins.withId('java') { apply plugin: 'dev.quokkify.archgate' } }Subprojects without
javaand withoutarchgate { }settings keep working without this; they only log one line. -
If a module in
modules(...)has Groovy, Scala or Kotlin classes, they are now checked and may report new findings.
Warning
gradle: a project that applies dev.quokkify.archgate without the java plugin and without skip = true now fails at configuration time instead of silently checking nothing.
Warning
core: builds on Jenkins, TeamCity, Azure Pipelines, AWS CodeBuild or another listed system that does not set CI now fail when an external rule cannot run, where they used to pass with the rule skipped. Provide the rule's variables, set archgate.ci.serviceUnavailable=skip for an unreachable service, or pass archgate.ci=false to keep the old behaviour.
✨ New
- rules: add API-test hygiene rules — Keep tests on typed models and layers apart. Add
archgate-rules-archunit-apiand listJsonTreeUsageRuleto stop tests from building JSON through the Jackson tree API; subclassLayerBoundaryRuleto forbid dependencies from one package layer to others. 🤖 Generated with Claude Code (#66) - rules: add TmsLink rules for test-management links — Check test-management links in tests. Add
archgate-rules-archunit-tmsand listTmsLinkRequiredRule,TmsLinkUniqueRuleorTmsLinkFormatRulein your services file to require, de-duplicate and validate@TmsLinkids on TestNG test methods. 🤖 Generated with Claude Code (#64) - rules: check TmsLink ids against TestRail and TestPlanIt — Check that every
@TmsLinkid points at a real case in your test-management system. Addarchgate-rules-archunit-testrailorarchgate-rules-archunit-testplanit, list the exists or automated rule, and set the connection variables; outside CI an unreachable server skips the rule. (#67)
🐛 Fixed
- maven: fail when -pl or -rf leaves checked modules out of the run — Maven:
mvn -pl <gate>andmvn -rf :<gate>no longer pass silently when the gate checks sibling modules that are not part of the run; the build now fails and names them. Add them to-plor use-am, run without-pl/-rf, or pass-Darchgate.skip=trueto skip the gate in that run. (#68) - rules: stop Service registration failing on another gate's rules — Two gates in one build no longer fail each other. Service registration reported another gate's rules as
class not foundwhen they came from a test-only dependency; it now leaves ArchGate's own services file to the gate that owns it. (#79)