Skip to main content

dependency-checker

Checks if DEPENDENCIES.md is out of date by comparing it against gradle/libs.versions.toml and each module's build.gradle. Reports any version mismatches, missing dependencies, or removed dependencies.

소스 정보

저장소
braintree/braintree_android
최근 소스 활동
2026년 7월 20일 13:41
감지된 SKILL.md 언어
영어
스타
423
포크
265

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
dependency-checker
description
Checks if DEPENDENCIES.md is out of date by comparing it against gradle/libs.versions.toml and each module's build.gradle. Reports any version mismatches, missing dependencies, or removed dependencies.
# Dependency Checker Audits `DEPENDENCIES.md` against the actual Gradle build files to detect drift. ## When to Use This Skill - After updating a dependency version in `libs.versions.toml` - After adding or removing a dependency from a module's `build.gradle` - Before a release to verify the dependency doc is accurate - During PR review when build files have changed ## What This Skill Does 1. **Reads `DEPENDENCIES.md`** and extracts the per-module dependency tables (dependency name + version) 2. **Reads `gradle/libs.versions.toml`** to get the declared versions 3. **Reads each module's `build.gradle`** to get the actual `api` and `implementation` dependencies 4. **Resolves BOM-managed versions** by running `./gradlew :<module>:dependencies --configuration releaseRuntimeClasspath` when a dependency has no explicit version in the toml (e.g., Compose libraries managed by `androidx.compose:compose-bom`) 5. **Compares** and reports: - **Version mismatches**: dependency exists in both but the version in `DEPENDENCIES.md` differs from the source of truth - **Missing from doc**: dependency is in a `build.gradle` but not listed in `DEPENDENCIES.md` - **Removed / stale**: dependency is listed in `DEPENDENCIES.md` but no longer in the `build.gradle` 6. **Prints a summary** of all findings, grouped by module 7. **Offers to update `DEPENDENCIES.md`** with the corrected versions if any drift is found ## How to Use ``` /dependency-checker ``` ``` Check if DEPENDENCIES.md is up to date ``` ``` /dependency-checker — only check the Card and PayPal modules ``` ## Excluded Modules Skip deprecated or legacy modules — they should NOT appear in `DEPENDENCIES.md`. There are currently none. If a deprecated module is found in `DEPENDENCIES.md`, flag it for removal. If a deprecated module is missing from the doc, do not report it as a missing entry. ## browser-switch Dependencies `DEPENDENCIES.md` has a dedicated section for `browser-switch` transitive dependencies (between "Key Third-Party Libraries" and "Per-Module Dependencies"). This section lists the direct runtime dependencies of `com.braintreepayments.api:browser-switch`. To verify this section: 1. Run `./gradlew :BraintreeCore:dependencies --configuration releaseRuntimeClasspath` and find the `browser-switch` subtree 2. Extract the direct dependencies (first-level children under `browser-switch`) 3. Compare the dependency names and versions against what `DEPENDENCIES.md` lists 4. Report mismatches, missing, or stale entries the same way as per-module checks ## Tips - The source of truth for versions is `gradle/libs.versions.toml` and the Gradle dependency resolution, not `DEPENDENCIES.md` - Internal module dependencies (`:BraintreeCore`, `:SharedUtils`, etc.) don't have versions — they ship with the SDK - Some Compose dependencies are BOM-managed; their versions come from `androidx.compose:compose-bom` declared in `UIComponents/build.gradle` - The bundled Magnes SDK version is embedded in the JAR filename at `DataCollector/libs/`
GitHub에서 보기