RUST-136 Add missing gradle.lockfile for root project#225
Conversation
The root project has no resolvable configurations so Gradle never generates a lockfile for it, triggering SonarQube rule S8569 which checks for lockfile presence on any build.gradle.kts outside a submodule.
SummaryThis PR adds a minimal The root project itself has no resolvable dependency configurations—it only contains plugin declarations and shared build logic—so Gradle never generates a lockfile for it. However, the SonarQube check doesn't distinguish between projects with dependencies and those without, so an empty lockfile with the standard boilerplate comment is added. This unblocks the quality gate without changing any actual build behavior. What reviewers should knowContext for reviewers:
Nothing to verify:
|
There was a problem hiding this comment.
LGTM! ✅
Clean, minimal fix. The empty= format (no configuration names) is the correct Gradle output for a project with zero resolvable configurations — distinct from empty=configName which other subprojects use to list configurations that exist but have no locked dependencies. The .gitignore does not exclude gradle.lockfile, so the file will be tracked correctly. No CI steps regenerate or verify lockfiles in a way that would conflict. If the root project later gains resolvable configurations, ./gradlew dependencies --write-locks will update the file automatically.
romainbrenguier
left a comment
There was a problem hiding this comment.
For me that's a false positive, since we already have settings-gradle.lockfile.
yes, I reported to the cloud security squad |
|





LockfileForJavaCheck) checks for lockfile presence on anybuild.gradle.ktsthat is not a submodule, regardless of build file content