Pick the fix
Twenty modules each declare compileSdk, Kotlin options and Compose setup by copy-paste, and they've drifted. Fix?
Hint 1 of 1
Where do shared Gradle rules go in modern builds?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A A convention plugin in build-logic that each module applies
Correct. One source of truth, applied by id.
Why not the others?
- B A root
subprojects { }block. Works but harms isolation and configuration caching. - C A shared text file each build includes. Fragile and untyped.
- D Merge into one module. Loses the benefits of modules.