Skip to content

Conversation

@arunkumar9t2
Copy link
Contributor

Convert DependencyGraphs from Dagger singleton to Gradle BuildService to ensure dependency graph construction happens during task execution phase rather than configuration phase, following Gradle best practices.

Changes:

  • Add DependencyGraphsService with configure()/get() pattern
  • Refactor consumers to use GradleProvider
  • Update variant filter interface from property to function for clarity

Convert DependencyGraphs from Dagger singleton to Gradle BuildService to ensure
dependency graph construction happens during task execution phase rather than
configuration phase, following Gradle best practices.

Changes:
- Add DependencyGraphsService with configure()/get() pattern
- Refactor consumers to use GradleProvider<DependencyGraphsService>
- Update variant filter interface from property to function for clarity
Replace hacky reflection code in DefaultAndroidUnitTestDataExtractorTest
with a proper FakeDependencyGraphsService class that extends
DefaultDependencyGraphsService and accepts DependencyGraphs in constructor.
@arunsampathkumar-grabtaxi arunsampathkumar-grabtaxi force-pushed the refactor/dependency-graphs-build-service branch from c35b560 to 78c2612 Compare January 7, 2026 04:01
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.

2 participants