Skip to content

fix: recognize Android and Kotlin Gradle dependency configurations - #669

Merged
vibgrate-team merged 1 commit into
mainfrom
cursor/gradle-android-configurations-7013
Nov 12, 2026
Merged

vibgrate-team merged 1 commit into
mainfrom
cursor/gradle-android-configurations-7013

Conversation

@vibgrate-team

Copy link
Copy Markdown
Contributor

Summary

vg scan now reads Android and other Gradle configurations that the old fixed list dropped, including androidTestImplementation, debugImplementation, ksp, and testFixturesImplementation.

The shared configuration pattern in src/core-open/scanners/java-scanner.ts matches camelCase names ending in Implementation, Api, CompileOnly, or RuntimeOnly, plus ksp, kapt, kaptTest, kaptAndroidTest, kspTest, and developmentOnly. Each matcher requires a word boundary first, so implementation is not taken from inside a longer identifier. androidTest*, test*, testFixtures*, kaptTest, kaptAndroidTest, and kspTest are dev dependencies. debugImplementation and ksp stay production. The same coordinate on implementation and androidTestImplementation stays production, and the production declaration supplies the version.

Related issues

Closes #660

Checklist

  • pnpm test passes
  • pnpm lint is clean
  • pnpm typecheck is clean
  • Docs updated (README / DOCS / ARCHITECTURE) where behavior changed
  • Determinism preserved — identical input still produces identical graph.json / report output (content-hashed IDs, stable sorts; no time, randomness, or filesystem-order dependence)
  • No proprietary or internal references — public, Apache-2.0 content only
  • Commits use Conventional Commits and are signed off (git commit -s, DCO)

Notes for reviewers

An Android app build.gradle.kts fixture covers those configurations, including the same coordinate declared on implementation and androidTestImplementation in both orders. pnpm test (5819 tests), pnpm lint, and pnpm typecheck passed. Lint still reports five existing unused-variable warnings in unrelated files. Docs are unchanged: this is a bug fix in existing Gradle configuration matching, not a new command.

@vibgrate-team
vibgrate-team force-pushed the cursor/gradle-android-configurations-7013 branch from 38556ee to 35c6ff6 Compare November 12, 2026 22:58
@vibgrate-team
vibgrate-team merged commit 47514b3 into main Nov 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Android and other Gradle configurations (androidTestImplementation, debugImplementation, ksp, testFixturesImplementation) are not read

1 participant