Skip to content

Releases

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 18:43
3462a45

0.4.0 (2026-11-24)

At a glance: ⚠️ 4 breaking · 3 new · 2 fixed · 7 internal

⚠️ 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)

  1. If your CI system is listed in docs/configuration.md#how-ci-is-detected and does not set CI, provide the variables your external rules need, such as the TestRail or TestPlanIt credentials, for the CI build.
  2. If the service may be unreachable from CI and a skip is acceptable, pass -Darchgate.ci.serviceUnavailable=skip.
  3. To keep the old lenient behaviour on purpose, pass -Darchgate.ci=false (Gradle: -Parchgate.ci=false).
  4. 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=false to force local behaviour; CI=false is not enough.
  5. Expect new findings in these cases:
    • NoThreadSleepRule: Thread::sleep, TimeUnit.X::sleep, an unqualified sleep(..) in a Thread subclass, SubThread.sleep(..).
    • NoConsoleOutputRule: Thread::dumpStack, Throwable::printStackTrace, an unqualified dumpStack() in a Thread subclass.
    • NoDeprecatedApiUsageRule: method and constructor references to deprecated members or signatures.
    • NoDisabledTestsRule: tests disabled through a composed @Disabled.
    • TestAssertionsRule and TestClassNamingRule: 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)

  1. A project that sets archgate { rootPackage … } or modules(...) without the java plugin (for example a base-only root or an Android module) now fails at configuration with applies dev.quokkify.archgate but not the java plugin. Apply the plugin with java in the project whose src/test/resources lists the rules, and list other projects in archgate { modules(...) }. If the project only configures the plugin for others, set archgate { skip = true } in it; -Parchgate.skip=true skips the gate in every project.

  2. If you apply the plugin to every subproject, apply it only where java is:

    subprojects {
        plugins.withId('java') {
            apply plugin: 'dev.quokkify.archgate'
        }
    }

    Subprojects without java and without archgate { } settings keep working without this; they only log one line.

  3. 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-api and list JsonTreeUsageRule to stop tests from building JSON through the Jackson tree API; subclass LayerBoundaryRule to 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-tms and list TmsLinkRequiredRule, TmsLinkUniqueRule or TmsLinkFormatRule in your services file to require, de-duplicate and validate @TmsLink ids on TestNG test methods. 🤖 Generated with Claude Code (#64)
  • rules: check TmsLink ids against TestRail and TestPlanIt — Check that every @TmsLink id points at a real case in your test-management system. Add archgate-rules-archunit-testrail or archgate-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> and mvn -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 -pl or use -am, run without -pl/-rf, or pass -Darchgate.skip=true to 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 found when they came from a test-only dependency; it now leaves ArchGate's own services file to the gate that owns it. (#79)
Internal changes (7 PRs)

Dependencies

  • actions/setup-java v6.2.0 → v6.3.0 (#76)
  • com.diffplug.spotless:spotless-plugin-gradle 8.11.0 → 8.12.0 (#77)
  • dev.quokkify:testng 0.15.0 → 0.16.0 (#78)
  • gradle 9.9.1 → 9.9.2 (#75)
  • org.apache.maven:apache-maven 3.10.1 → 3.10.2 (#74)

Maintenance

  • renovate: adopt the supply-chain hardening and stack grouping presets (#72)
  • template: update shared project template (#73)

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 15:03
53e815a

0.3.0 (2026-11-20)

At a glance: 2 new · 10 internal

✨ New

  • rules: let rules call external services and skip outside CI — Rules can call external services. Read credentials with context.environment().require("TOKEN"); outside CI a missing variable or an unreachable service shows [SKIP], in CI it fails the build. Set archgate.ci=true on CI systems that do not set CI. (#59)

    @Override
    public void verify(ArchUnitContext context) {
        Map<String, String> vars = context.environment().require("TRACKER_URL", "TRACKER_TOKEN");
        try {
            checkViolations("Every case exists", findMissing(new TrackerClient(vars), context.test()));
        } catch (IOException e) {
            throw context.environment().unavailable("Tracker", e);
        }
    }

    🤖 Generated with Claude Code

  • rules: share one load between rules and group violations — Rules can share one load and group findings. Wrap an expensive load in context.shared("issue index", () -> load()) to build it once per run; report findings by reason with checkViolationGroups. (#60)

    IssueIndex index = context.shared("issue index", () -> IssueIndex.load(client));
    checkViolationGroups("Every case id identifies a live case", List.of(
            new ViolationGroup("case does not exist", missing(index)),
            new ViolationGroup("case is deleted", deleted(index))));

    🤖 Generated with Claude Code

Internal changes (10 PRs)

Dependencies

  • actions/setup-java v6.1.0 → v6.2.0 (#52)
  • dev.quokkify:testng 0.12.2 → 0.15.0 (#54, #56)
  • gradle 9.8.2 → 9.9.1 (#53, #57)
  • org.apache.maven:apache-maven 3.10.0 → 3.10.1 (#58)

Maintenance

  • config: describe checking only the files a pull request changed (#63)
  • deps: move Querydsl test fixtures to the OpenFeign fork (#50)
  • rules: assert actionable naming-rule messages (#62)
  • template: update shared project template (#55)

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 07 Nov 17:21
6717b85

0.2.1 (2026-11-07)

At a glance: 1 fixed · 1 internal

🐛 Fixed

  • rules: report use of a deprecated class in NoDeprecatedApiUsageRule (#49)
Internal changes (1 PR)

Maintenance

  • template: update shared project template (#47)

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 07 Nov 13:41
3cecee7

0.2.0 (2026-11-07)

At a glance: 1 new · 7 internal

✨ New

  • check the non-empty scopes of main + test rules (#44)
Internal changes (7 PRs)

Dependencies

  • com.diffplug.spotless:spotless-plugin-gradle 8.10.4 → 8.11.0 (#41)
  • gradle/actions v6.4.0 → v6.4.1 (#38)
  • io.github.classgraph:classgraph 4.8.199 → 5.0.2 · major (#27)
  • quokkify/ci-kit v4.1.0 → v4.2.0 (#40)

Maintenance

  • run tests as one job per Gradle project (#37)
  • stop Renovate from raising the Maven API floor (#42)
  • template: update shared project template (#45)

v0.1.2

Choose a tag to compare

@github-actions github-actions released this 29 Oct 15:02
9be9b68

0.1.2 (2026-10-29)

🐛 Bug Fixes

  • ci: collect Allure results into one directory so the report is not empty (#35) (7163e2f)
  • publish: wait up to an hour for Maven Central to publish (#31) (5b1b82f)

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 29 Oct 08:47
c09cf2b

0.1.1 (2026-10-29)

🐛 Bug Fixes

  • publish: fail fast on missing secrets and pass the optional signing key ID (#29) (48e89b2)

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 28 Oct 21:23
5a6816f

0.1.0 (2026-10-28)

✨ Features

  • port ArchGate to Gradle with Maven and Gradle plugins (5e6a14a)

📦 Dependencies

  • gradle-wrapper: update gradle to v9.8.1 (#6) (1e8b32d)
  • gradle-wrapper: update gradle to v9.8.2 (#12) (2130a02)
  • gradle: update org.apache.maven:apache-maven to v3.10.0 (#11) (f018c75)

🧹 Chores

  • build: resolve maven-plugin-development from the version catalog (#9) (e3f2872)
  • ci-kit: hand off base, security, release, allure, renovate to modules (#17) (0e3bcec)
  • ci-kit: hand off validate to core module (#5) (c2525a7)
  • initial commit (65308fe)
  • release 0.1.0 as the first version (#14) (5c3e149)
  • template: update shared project template (#10) (003bf93)
  • template: update shared project template (#13) (4a37799)
  • template: update shared project template (#16) (6dc69b3)
  • template: update shared project template (#18) (4f740a1)
  • template: update shared project template (#19) (ef8c51f)
  • template: update shared project template (#20) (e787421)
  • template: update shared project template (#22) (563345d)
  • template: update shared project template (#3) (d9407f1)
  • template: update shared project template (#4) (05a9887)