Without gradle.lockfile, Syft lists nothing for an Android or JVM app, and
resolving the build would run its scripts. sbom/gradle.rs now reads what
the build files declare, without executing anything:
- literal coordinates in build.gradle(.kts), including map notation and
`@aar`;
- versions from `ext`/`def`/`val` variables and gradle.properties
(`$v`, `${v}`, `${rootProject.ext.v}`);
- the version catalog (`*.versions.toml`): libraries and bundles a build
file uses, with `version.ref`, `strictly` and `require`.
Only dependencies that ship (implementation, api, compile, runtime, any
flavor prefix) with an exact version count: test, lint, kapt/ksp and
annotation processors, buildscript classpath, ranges and `1.+` do not.
Entries are `maven` with a purl, so OSV matches them. The build is still
reported as unlocked, with a note that only direct dependencies are listed.
New nightly fixture android-legacy-groovy (phone/tablet flavors, ext and
gradle.properties versions); the catalog and Flutter baselines gain their
direct dependencies.
Refs #434.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p