aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2019-11-06 17:01:34 +0100
committerSonarTech <sonartech@sonarsource.com>2019-11-12 20:21:07 +0100
commit8c0b3350b714e835e91d89f958eefa531533070a (patch)
treeaa2e407c0ccc87f8c450e2842b311f61f21f229e /server
parentff1bf224d1d1d82bc603578df1eccd874042172a (diff)
downloadsonarqube-8c0b3350b714e835e91d89f958eefa531533070a.tar.gz
sonarqube-8c0b3350b714e835e91d89f958eefa531533070a.zip
SONAR-12677 do not duplicate configuration of bundled plugins
into the sonar-docs module and the edition modules also, make sonar-docs support being built from public sources which do not contain commercial editions
Diffstat (limited to 'server')
-rw-r--r--server/sonar-docs/build.gradle40
1 files changed, 12 insertions, 28 deletions
diff --git a/server/sonar-docs/build.gradle b/server/sonar-docs/build.gradle
index 7ebd1374106..b7bc9f82eb3 100644
--- a/server/sonar-docs/build.gradle
+++ b/server/sonar-docs/build.gradle
@@ -15,40 +15,24 @@ sonarqube {
group = 'com.sonarsource.sonarqube'
configurations {
- languagePlugin { transitive = false }
+ bundledPlugin {
+ transitive = false
+ }
}
-dependencies {
- languagePlugin 'com.sonarsource.abap:sonar-abap-plugin@jar' // private
- languagePlugin 'com.sonarsource.slang:sonar-apex-plugin@jar' // private
- languagePlugin "org.sonarsource.dotnet:sonar-csharp-plugin@jar"
- languagePlugin 'com.sonarsource.cpp:sonar-cfamily-plugin@jar' // private
- languagePlugin 'com.sonarsource.cobol:sonar-cobol-plugin@jar' // private
- languagePlugin 'org.sonarsource.css:sonar-css-plugin@jar'
- languagePlugin 'org.sonarsource.flex:sonar-flex-plugin@jar'
- languagePlugin 'org.sonarsource.java:sonar-java-plugin@jar'
- languagePlugin 'org.sonarsource.javascript:sonar-javascript-plugin@jar'
- languagePlugin "org.sonarsource.slang:sonar-kotlin-plugin@jar"
- languagePlugin 'org.sonarsource.php:sonar-php-plugin@jar'
- languagePlugin 'com.sonarsource.pli:sonar-pli-plugin@jar' // private
- languagePlugin 'com.sonarsource.plsql:sonar-plsql-plugin@jar' // private
- languagePlugin 'org.sonarsource.python:sonar-python-plugin@jar'
- languagePlugin 'com.sonarsource.rpg:sonar-rpg-plugin@jar' // private
- languagePlugin 'org.sonarsource.slang:sonar-go-plugin@jar'
- languagePlugin "org.sonarsource.slang:sonar-ruby-plugin@jar"
- languagePlugin "org.sonarsource.slang:sonar-scala-plugin@jar"
- languagePlugin 'com.sonarsource.swift:sonar-swift-plugin@jar' // private
- languagePlugin 'org.sonarsource.typescript:sonar-typescript-plugin@jar'
- languagePlugin 'com.sonarsource.tsql:sonar-tsql-plugin@jar' // private
- languagePlugin "org.sonarsource.dotnet:sonar-vbnet-plugin@jar"
- languagePlugin 'com.sonarsource.plugins.vb:sonar-vb-plugin@jar' // private
- languagePlugin 'org.sonarsource.html:sonar-html-plugin@jar'
- languagePlugin 'org.sonarsource.xml:sonar-xml-plugin@jar'
+// loads the bundled_plugins.gradle of each edition
+// (they will all add there own bundled plugins to the bundledPlugin dependency configuration)
+apply from: new File(rootDir, 'sonar-application/bundled_plugins.gradle')
+File closeSourceDir = new File(rootDir, 'private');
+if (closeSourceDir.exists()) {
+ apply from: new File(closeSourceDir, 'edition-developer/bundled_plugins.gradle')
+ apply from: new File(closeSourceDir, 'edition-enterprise/bundled_plugins.gradle')
+ apply from: new File(closeSourceDir, 'edition-datacenter/bundled_plugins.gradle')
}
task extractAnalyzerDocFiles {
doLast {
- configurations.languagePlugin.files.each {
+ configurations.bundledPlugin.files.each {
File file = it
copy {
from(zipTree(file).matching { include 'static/documentation.md' }) {