Bernhard Posselt
07/09/2026, 7:27 AMVampire
07/09/2026, 7:54 AMdo I just move the wrapper up from the composite builds into the parent directoryYes, where the wrapper files are is pretty irrelevant.
and do I want some kind of settings.gradle.kts in the parent directory?Depends on whether you want a build there, for example one that includes the other builds in a kind of super-build, so that you can for example build multiple of those projects in one call. Otherwise it's not really necessary, as there is not too much difference between
./gradlew :app1:build and ./gradlew -p app1 :build or cd app1 && ../gradlew :build.Bernhard Posselt
07/09/2026, 7:56 AMBernhard Posselt
07/09/2026, 7:56 AMBernhard Posselt
07/09/2026, 8:22 AMBernhard Posselt
07/09/2026, 8:26 AMBernhard Posselt
07/09/2026, 8:26 AMTim Yates
07/09/2026, 9:07 AMBernhard Posselt
07/09/2026, 9:08 AMVampire
07/09/2026, 9:14 AMI thought maybe the parent gradle settings file would allow me to share code between builds,If you want to share code between builds A and B you have build C that you include from both of the other builds. The build in the root project would not be too useful for that, unless that is the one where you have the shared code, but that would probably be a bit awkward structure-wise.
like maybe including the libs.versions.toml (if I want to keep it outside of the gradle folder) and other thingsYou need to include it by location in any of the settings scripts where you want to use it, so having it in the root directory would not help
I think either way, I need to use one wrapper per composite buildNo you don't, you just need to explictly define the version catalog location
Bernhard Posselt
07/09/2026, 9:15 AMBernhard Posselt
07/09/2026, 9:15 AMVampire
07/09/2026, 9:40 AMgradle/wrapper/gradle-wrapper.properties file in each of the builds so that IntelliJ uses the right Gradle verrsion.
The other three files are irrelevant for IntelliJBernhard Posselt
07/09/2026, 9:42 AMVampire
07/09/2026, 9:46 AMVampire
07/09/2026, 9:47 AMBernhard Posselt
07/09/2026, 9:55 AM