diff options
author | Philippe Perrin <philippe.perrin@sonarsource.com> | 2021-07-16 14:50:53 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-07-21 20:03:01 +0000 |
commit | 22e0696a0924aee4746155771412460085ccb0df (patch) | |
tree | 672a899f67c1df1cc8e582d9329a656c41e236d3 /build.gradle | |
parent | a57b5dd4d8ba48dd55a80111f1c6db54cb36c63d (diff) | |
download | sonarqube-22e0696a0924aee4746155771412460085ccb0df.tar.gz sonarqube-22e0696a0924aee4746155771412460085ccb0df.zip |
SONAR-14617 Target local sonar-ui-common project
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index ad2d148b3cb..2d192137221 100644 --- a/build.gradle +++ b/build.gradle @@ -651,6 +651,10 @@ subprojects { // their concurrent execution even in case when one or more of these tasks not // scheduled. def yarnInstallTasks = allprojects.findResults { it -> it.tasks.findByName('yarn') } + +// Drop :server:sonar-ui-common:yarn from the list because it will be creating a circular dependency +yarnInstallTasks.eachWithIndex { t, i -> if (t.path == ':server:sonar-ui-common:yarn') yarnInstallTasks.remove(i) } + yarnInstallTasks.drop(1).eachWithIndex { it, i -> it.mustRunAfter(yarnInstallTasks[0..i]) } // by default, Yarn will update lock file if it is not up to date with "package.json" |