Skip to content

Detect modules in a value source - #344

Merged
fornewid merged 1 commit into
developfrom
module-detector-value-source
Oct 4, 2026
Merged

fornewid merged 1 commit into
developfrom
module-detector-value-source

Conversation

@fornewid

@fornewid fornewid commented Oct 4, 2026

Copy link
Copy Markdown
Member

Gradle records every directory the module detector lists, and every file it checks, as a configuration cache input. So an unrelated change, such as a new .DS_Store or a core/build directory, discarded the cache although the module list was the same.

ModuleDetectorPlugin now detects the modules inside a ValueSource (ModulesValueSource). The cache then compares only the detected module list, one input instead of about 280. findModules and its unit tests are unchanged.

Verification

./gradlew help after... Before (develop) After
a new unrelated directory under core/ cache discarded (directory 'core' has changed) cache reused
adding a module (core/<name>/build.gradle) cache discarded cache discarded (ModulesValueSource changed), module included
removing that module cache discarded cache discarded
  • ./gradlew -q projects lists the same 51 projects.
  • ./gradlew -p build-logic :module-detector:test passes (3 tests), and so does :module-detector:validatePlugins with stricter validation enabled.

πŸ€– Generated with Claude Code

https://claude.ai/code/session_01Upxj1FvQeDpycupKdPQHUZ

Gradle records every directory the module detector lists as a
configuration cache input, so an unrelated change such as a new
.DS_Store or core/build discarded the cache. Detecting the modules
inside a ValueSource makes the cache compare only the detected modules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Upxj1FvQeDpycupKdPQHUZ
@fornewid
fornewid merged commit 3e18015 into develop Oct 4, 2026
1 check passed
@fornewid
fornewid deleted the module-detector-value-source branch October 4, 2026 03:17
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.

1 participant