Robert Elliot
02/18/2025, 10:55 AMrootProject.tasks.named("dependencies") {
dependsOn(tasks.named("dependencies"))
}Javi
02/18/2025, 11:41 AMJavi
02/18/2025, 11:42 AM./gradlew dependencies
instead of
./gradlew :dependenciesephemient
02/18/2025, 11:44 AMdependencies doesn't work like other task names and is hard-coded to only run in the current subprojectephemient
02/18/2025, 11:45 AMtasks.register("allDependencies") {
allprojects { dependsOn("$path:dependencies") }
}Robert Elliot
02/18/2025, 11:48 AMJavi
02/18/2025, 11:49 AMallprojects {
tasks.register("getDependencies) {
dependsOn("$path:dependencies")
}
}Javi
02/18/2025, 11:49 AMI'm trying to get a nice diff output to see what dependencies are changing over time, but it's reordering the projects in the output as the deps change, so it's not really usable.Are you interested on the transitive dependencies too?
Javi
02/18/2025, 11:50 AMephemient
02/18/2025, 11:51 AMRobert Elliot
02/18/2025, 11:53 AMapply the project-report plugin and use its file-based output instead of trying to parse gradle stdoutNice, thanks
Robert Elliot
02/18/2025, 11:53 AMAre you interested on the transitive dependencies too?Yes, it's the result of using
module { replacedBy } and things like that that I want to understand.Vampire
02/18/2025, 5:19 PMallprojects { ... } by allprojects.forEach { ... }. Otherwise you do cross-project configuration through cross-project configuration instead of just using a plain loop.