Slackbot
02/27/2023, 11:15 AMJavi
02/27/2023, 11:19 AMNikolay
02/27/2023, 11:19 AMJavi
02/27/2023, 11:19 AMNikolay
02/27/2023, 11:20 AMNikolay
02/27/2023, 11:20 AM./gradlew build
Nikolay
02/27/2023, 11:20 AMNikolay
02/27/2023, 11:21 AMJavi
02/27/2023, 11:21 AMNikolay
02/27/2023, 11:22 AMChi Cuong Le
02/27/2023, 11:23 AMVampire
02/27/2023, 11:26 AMNikolay
02/27/2023, 11:27 AMsettings.gradle.kts
dynamic it will mean we have to write less code to add a new module. The question is the file traversal going to be an expensive price to pay?Javi
02/27/2023, 11:27 AMJavi
02/27/2023, 11:28 AMNikolay
02/27/2023, 11:28 AMVampire
02/27/2023, 11:28 AMVampire
02/27/2023, 11:29 AMthat is a really bad default behavior...Not really, if classpath changes, you don't know what exactly changed
Javi
02/27/2023, 11:29 AMNikolay
02/27/2023, 11:29 AMJavi
02/27/2023, 11:30 AMVampire
02/27/2023, 11:30 AMUnfortunately we need to look several directories deep. I guess I will have to give it smarts when traversing to make it as efficient as possible.Or as I said, just have the list in a separate file and not in the setting script code, so that the classpath does not change just because you add a module
Nikolay
02/27/2023, 11:31 AMNikolay
02/27/2023, 11:32 AMVampire
02/27/2023, 11:32 AM@Vampire I think there should be an alternative to add modules without changing the settings script as default behavior based on this problemThat's not trivial, a project does not even have to have an own build script to be a valid project, even though it is bad practice. And traversing the whole tree might be the wrong thing to do as you could also have nested builds using composite builds that should not be included as subprojects and so on. And if you want that behavior, it is trivial to do such a traversal or put the projects to include in a separate file that you read from the settings script
Vampire
02/27/2023, 11:33 AMI am curious why nobody from gradle has written a blog post about this. Seems like a common problem.Personally, I don't think it is such a common problem, as the modules that are part of a build usually do not change that often in a typical build.
Javi
02/27/2023, 11:34 AMVampire
02/27/2023, 11:34 AMJavi
02/27/2023, 11:35 AMNikolay
02/27/2023, 2:17 PMNikolay
02/27/2023, 2:17 PMChi Cuong Le
02/27/2023, 3:41 PM