]> source.dussan.org Git - sonarqube.git/commit
Usage of Gradle option "--parallel" should be safe
authorEvgeny Mandrikov <138671+Godin@users.noreply.github.com>
Fri, 26 Jul 2019 12:50:36 +0000 (14:50 +0200)
committerSonarTech <sonartech@sonarsource.com>
Fri, 26 Jul 2019 18:21:46 +0000 (20:21 +0200)
commit6fa9cf49b78f8f49b300890e57398247163a66b1
treeacadc32832090da7f8bf6bd8245d686aba471a8d
parent43d710e93b5bbe96e5364e9eb5dc7c88b2a2118c
Usage of Gradle option "--parallel" should be safe

Gradle should not execute several "yarn install" in parallel,
because Yarn doesn't support concurrent access to its global cache.

"task1.mustRunAfter(task2)" ordering has an effect only when both
tasks are scheduled for execution, however currently task
":private:docs:yarn" is not executed during execution of "gradle build".
Therefore "mustRunAfter" should be established between all pairs of
"yarn install" tasks to define their total order and to prevent their
concurrent execution even in case when one or more of these tasks not
scheduled.
build.gradle