Gradle Composite Builds Is there a way to run each includedBuilds one by one

When i use:

    dependsOn( { it.task(":build") })

All included builds run at the same time and some of their inner tasks are creating conflict when they are running tests or some othere tasks.
Is there a way to run only one includedBuilds at the time?

I tested this in it fixes this problem, but i would prefer maybe some other different way to do it?


By default tasks would only run linear.
If tasks run in parallel, then you enabled it, for example by enabling the configuration cache, or by enabling org.gradle.parallel or --parallel.
If you have conflicts in that case, maybe your builds need to be improved to not conflict with each other. :slight_smile:

1 Like