What problem does it solve?
It prevents accidental breaks and hidden instability by auditing dependency declaration changes, especially downgrades, BOM/version mismatches, and convention drift in the repo’s buildSrc dependency catalog.
Core Features & Use Cases
- Version sanity checks: Detects semver downgrades and snapshot regressions in dependency version declarations.
- BOM ↔ component agreement: Verifies that
DependencyWithBom artifacts keep BOM and component versions aligned.
- Deprecation discipline & caller safety: Ensures renamed/removed constants keep proper
@Deprecated guidance and that no call sites are left behind.
- Convention drift detection: Flags stale copyright years, missing URL comments, and missing constant-object suppression.
- Cross-cutting guardrails: Checks that
local/ vs lib/ vs test/ dependency boundaries aren’t violated and that Gradle DSL usage stays consistent.
Quick Start
Use dependency-audit whenever a diff touches buildSrc dependency declarations under buildSrc/src/main/kotlin/io/spine/dependency/ or when asked to audit a dependency bump, and run it against the unified diff rather than re-scanning unrelated code.