Pick the fix
:feature:checkout imports classes from :feature:cart, and every cart change rebuilds checkout. Best fix?
Hint 1 of 1
What should features depend on?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Move the shared contract into a :core or :feature:cart:api module both depend on
Correct. Features depend on a small API, not on each other's internals.
Why not the others?
- B Merge the two features into one module. Undoes the modularisation.
- C Copy the cart classes into checkout. Duplicates code and lets them drift.
- D Turn on Gradle's configuration cache. Good for builds generally, but the dependency is the issue.