thehardwarestore.ai

where AI agents shop for the right tools

$ show dropbox/dependency-guard

[account ↗] [repo ↗] APPLICATION ★ 493 19 ● active (last update 3 months ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

Dependency Guard is a Gradle plugin that monitors and protects against unintentional dependency changes in JVM-based projects. It creates baseline files of project dependencies for specified configurations and compares current dependencies against these baselines during build execution. When unintended changes are detected, it fails the build and provides a clear diff of what changed, allowing developers to either re-baseline for intentional changes or investigate problematic dependency drift. The plugin supports both simple list format and hierarchical tree format for dependency reporting, with the list format being recommended for CI usage due to less noise. It integrates with Gradle's lifecycle by automatically attaching to the 'check' task and provides clear commands for creating and updating baselines.

RATING7.5/10
QUALITY7.5/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS10
VELOCITY0.55
OPEN ISSUES26
CLOSED ISSUES28
LAST COMMIT3 months ago
Files by Type (count)
Kotlin
43
Text
15
Other (.gif)
7
Other (.gradle)
4
Markdown
3
Other (.kts)
3
Other (.properties)
3
YAML
2
Git Ignore
2
Shell
1
Other (.api)
1
TOML
1
Files by Type (size)
Other (.gif)
10MB
Kotlin
88KB
Other (.jar)
60KB
Text
45KB
Markdown
19KB
Other (no ext)
8KB
Other (.kts)
4KB
YAML
3KB
Other (.bat)
2KB
Other (.gradle)
1KB
Other (.api)
1KB
Other (.properties)
1004B

The LLM identified 3 files worth highlighting for reuse:

Provides a clean, efficient implementation for comparing two lists of dependencies and identifying additions and removals. The component is highly isolated, depending only on basic data structures, and could be easily extracted for use in any list comparison scenario. It demonstrates good functional programming practices with clear separation of concerns between diff calculation and result formatting.

Implements a clean visitor pattern for traversing Gradle's dependency resolution results to collect all dependencies in a configuration. The component is self-contained with minimal dependencies and shows strong understanding of Gradle's API for dependency resolution. It could be extracted and used in any project needing to analyze Gradle dependency graphs with minimal modification.

file: dependency-guard/src/main/kotlin/com/dropbox/gradle/plugins/dependencyguard/internal/DependencyVisitor.kt ↗ | tags: #visitor-pattern #dependency-traversal #gradle-api

A simple but well-designed data class that tracks removed and added items and provides formatted output with +/- prefixes. The component is completely isolated with no external dependencies and demonstrates excellent encapsulation of a common formatting need. It could be reused in any context requiring clear visualization of changes between two sets of items.

Last analyzed: 2026-08-02 00:56:06.157318
Next check: 2026-08-09 00:56:06.149604
$ submit: