aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-docs
diff options
context:
space:
mode:
authorPhilippe Perrin <philippe.perrin@sonarsource.com>2021-07-16 14:50:53 +0200
committersonartech <sonartech@sonarsource.com>2021-07-21 20:03:01 +0000
commit22e0696a0924aee4746155771412460085ccb0df (patch)
tree672a899f67c1df1cc8e582d9329a656c41e236d3 /server/sonar-docs
parenta57b5dd4d8ba48dd55a80111f1c6db54cb36c63d (diff)
downloadsonarqube-22e0696a0924aee4746155771412460085ccb0df.tar.gz
sonarqube-22e0696a0924aee4746155771412460085ccb0df.zip
SONAR-14617 Target local sonar-ui-common project
Diffstat (limited to 'server/sonar-docs')
-rw-r--r--server/sonar-docs/build.gradle4
-rw-r--r--server/sonar-docs/package.json2
-rw-r--r--server/sonar-docs/yarn.lock4
3 files changed, 6 insertions, 4 deletions
diff --git a/server/sonar-docs/build.gradle b/server/sonar-docs/build.gradle
index d0fc7a471b9..b620475a4c3 100644
--- a/server/sonar-docs/build.gradle
+++ b/server/sonar-docs/build.gradle
@@ -55,6 +55,10 @@ task extractAnalyzerDocFiles {
}
}
+yarn.configure {
+ dependsOn tasks.getByPath(':server:sonar-ui-common:yarn_run')
+}
+
yarn_run {
def docsVersion = version.split("[.-]").take(2).join('.')
environment = [ GATSBY_DOCS_VERSION: docsVersion ]
diff --git a/server/sonar-docs/package.json b/server/sonar-docs/package.json
index 7e58a2012f8..64eb7a6a417 100644
--- a/server/sonar-docs/package.json
+++ b/server/sonar-docs/package.json
@@ -23,7 +23,7 @@
"react-helmet": "5.2.1",
"react-typography": "0.16.19",
"rehype-react": "6.1.0",
- "sonar-ui-common": "1.0.33",
+ "sonar-ui-common": "../sonar-ui-common/build/dist",
"typography": "0.16.19"
},
"devDependencies": {
diff --git a/server/sonar-docs/yarn.lock b/server/sonar-docs/yarn.lock
index d59ad06240d..5d71ab30bab 100644
--- a/server/sonar-docs/yarn.lock
+++ b/server/sonar-docs/yarn.lock
@@ -13691,10 +13691,8 @@ sockjs@0.3.19:
faye-websocket "^0.10.0"
uuid "^3.0.1"
-sonar-ui-common@1.0.33:
+sonar-ui-common@../sonar-ui-common/build/dist:
version "1.0.33"
- resolved "https://repox.jfrog.io/repox/api/npm/npm/sonar-ui-common/-/sonar-ui-common-1.0.33.tgz#8eb6f40b1ab81b802a8eb92fd549598432e9dc26"
- integrity sha1-jrb0Cxq4G4Aqjrkv1UlZhDLp3CY=
dependencies:
"@types/react-select" "1.2.6"
classnames "2.2.6"