Slackbot
06/21/2022, 8:50 PMJohn
06/21/2022, 8:52 PMorg.gradle.parallel lets tasks run in parallel, so if you have multiple test tasks in the same project, yes they can run in parallelJoffrey Bion
06/21/2022, 8:53 PMJohn
06/21/2022, 8:54 PMmustRunAfter to force the tasks to run in serial. but this would not be idealJoffrey Bion
06/21/2022, 8:55 PMJavi
06/21/2022, 8:58 PMVampire
06/21/2022, 11:11 PMorg.gradle.parallel lets task run in parallel, but only if those tasks are in different projects.
Tasks within a project are afair only run in paralllel if you either use the configuration cache, or if the task submitted work items using the worker api and there are tasks not depending on that task those could also run in parallel.Vampire
06/21/2022, 11:12 PMVampire
06/21/2022, 11:12 PMJohn
06/21/2022, 11:13 PMVampire
06/21/2022, 11:13 PMgradle.properties does not even exist unless you use a plugin that adds it. And even then it would not work for a build-wide setting like org.gradle.parallel.Javi
06/21/2022, 11:19 PMgradle.properties is near to the project, it has preference, so:
1. project/gradle.properties
2. gradle.properties
3. user home .gradle/gradle.propertiesVampire
06/21/2022, 11:22 PMVampire
06/21/2022, 11:23 PMproject/gradle.properties is considered, then most probably by some plugin you are using and then org.gradle.parallel would not have any effect.Vampire
06/21/2022, 11:23 PMJoffrey Bion
06/22/2022, 6:52 PMorg.gradle.parallel. The shared build service is actually exactly what I need I believe. I'm currently using the avast docker compose plugin to launch the test server, and AFAIR they were mentioning migrating to a build service:
https://github.com/avast/gradle-docker-compose-plugin/issues/307#issuecomment-1023357193
Not sure how it ended being implemented but maybe I could configure concurrency directly there then.
Thanks a lot @Vampire