Skip to content

feat: add configuration cache compatibility#4

Open
ffluk3 wants to merge 1 commit into
flo-health:mainfrom
ffluk3:ffluk3/configuration-cache
Open

feat: add configuration cache compatibility#4
ffluk3 wants to merge 1 commit into
flo-health:mainfrom
ffluk3:ffluk3/configuration-cache

Conversation

@ffluk3

@ffluk3 ffluk3 commented Jul 6, 2026

Copy link
Copy Markdown

The plugin previously called task.notCompatibleWithConfigurationCache() on every AMD task, explicitly opting out of Gradle's configuration cache. This change removes that opt-out and fixes the underlying incompatibilities that made it necessary.

What was fixed:

  • configureTaskGuard() now captures only the project path (String) and the AffectedModuleDetectorWrapper extension; no Task/Project in the lambda
  • withPlugin() delegates to configureTaskGuard() instead of baking an eager boolean
  • DependencyTracker eagerly computes its dependency map at construction so no Project reference is retained in a serialized field
  • All build service and ValueSource parameters converted to Property, RegularFileProperty, and ListProperty
  • Log file creation and git root discovery moved into the AffectedModuleDetectorLoader service init (runs at execution time, not configuration time)
  • disableConfigCache() and all callsites removed

The plugin previously called task.notCompatibleWithConfigurationCache()
on every AMD task, explicitly opting out of Gradle's configuration
cache. This change removes that opt-out and fixes the underlying
incompatibilities that made it necessary.

What was fixed:

- configureTaskGuard() now captures only the project path (String) and the AffectedModuleDetectorWrapper extension; no
Task/Project in the lambda
- withPlugin() delegates to configureTaskGuard() instead of baking an eager boolean
- DependencyTracker eagerly computes its dependency map at construction so no Project reference is retained in a serialized
 field
- All build service and ValueSource parameters converted to Property<T>, RegularFileProperty, and ListProperty<T>
- Log file creation and git root discovery moved into the AffectedModuleDetectorLoader service init (runs at execution
time, not configuration time)
- disableConfigCache() and all callsites removed
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