Robert Elliot
09/19/2025, 3:39 PMsettings.gradle.kts
if (file("settings-include.gradle.kts").exists()) {
apply(from = "settings-include.gradle.kts", optional = true)
}
.gitignore
settings-include.gradle.kts
settings-include.gradle.kts
includeBuild("../other-project")
Then you can just comment that line in settings-include.gradle.kts in and out.
Is this how everyone else is doing it?Martin
09/19/2025, 3:43 PMMartin
09/19/2025, 3:43 PMRobert Elliot
09/19/2025, 3:47 PMMartin
09/19/2025, 3:49 PMsettings.gradle.kts file because I want to see it in git status and I don't mind committing it accidentally because my CI will catch it quicklyMartin
09/19/2025, 3:49 PMMartin
09/19/2025, 3:51 PMprintln because those will get through CI undetected but included builds will fail every time so I don't mind that much š¤·Vampire
09/19/2025, 4:08 PMgit add -p and add hunk by hunk that I want to commit unless I do really big changes.
It also depends on what you do the composite build for. If it is just to have both projects in the same IDE and connected, you could also just define the composite build in the IDE. If it is only for necessary for a Gradle run, you can define the composite build via commandline argument.Vampire
09/19/2025, 4:13 PMVampire
09/19/2025, 4:13 PMMartin
09/19/2025, 4:14 PMVampire
09/19/2025, 4:15 PMgit status will not show that I currently use the dependency included instead of binary. šMartin
09/19/2025, 4:15 PMephemient
09/19/2025, 4:53 PMEli Graber
09/19/2025, 8:06 PMsettings.gradle.kts I iterate those and add them as includedBuildRobert Elliot
04/02/2026, 3:48 PMshell
./include-build.sh <relative_path_to_build>
To stop building against all local builds:
shell
./include-build.sh -r
To stop building against specific local builds:
shell
./include-build.sh -r <relative_path_to_build>