aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application
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 /sonar-application
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 'sonar-application')
-rw-r--r--sonar-application/build.gradle66
-rw-r--r--sonar-application/bundled_plugins.gradle20
2 files changed, 45 insertions, 41 deletions
diff --git a/sonar-application/build.gradle b/sonar-application/build.gradle
index bda9596383d..e2fcdaa1fd9 100644
--- a/sonar-application/build.gradle
+++ b/sonar-application/build.gradle
@@ -27,49 +27,33 @@ configurations {
}
dependencies {
- // please keep list ordered
- compile 'org.slf4j:slf4j-api'
-
- compile 'org.elasticsearch.client:transport'
- compile project(':server:sonar-ce')
- compile project(':server:sonar-main')
- compile project(':server:sonar-process')
- compile project(':server:sonar-webserver')
- compile project(':sonar-core')
- compile project(path: ':sonar-plugin-api', configuration: 'shadow')
- compile project(':sonar-plugin-api-impl')
-
- compileOnly 'com.google.code.findbugs:jsr305'
-
- jsw 'tanukisoft:wrapper:3.2.3'
- scanner project(path: ':sonar-scanner-engine-shaded', configuration: 'shadow')
- web project(':server:sonar-web')
- shutdowner project(':sonar-shutdowner')
-
- jdbc_h2 'com.h2database:h2'
- jdbc_mssql 'com.microsoft.sqlserver:mssql-jdbc'
- jdbc_postgresql 'org.postgresql:postgresql'
-
- bundledPlugin 'org.sonarsource.css:sonar-css-plugin@jar'
- bundledPlugin "org.sonarsource.dotnet:sonar-csharp-plugin@jar"
- bundledPlugin "org.sonarsource.dotnet:sonar-vbnet-plugin@jar"
- bundledPlugin 'org.sonarsource.flex:sonar-flex-plugin@jar'
- bundledPlugin 'org.sonarsource.html:sonar-html-plugin@jar'
- bundledPlugin 'org.sonarsource.java:sonar-java-plugin@jar'
- bundledPlugin 'org.sonarsource.jacoco:sonar-jacoco-plugin@jar'
- bundledPlugin 'org.sonarsource.javascript:sonar-javascript-plugin@jar'
- bundledPlugin 'org.sonarsource.php:sonar-php-plugin@jar'
- bundledPlugin 'org.sonarsource.python:sonar-python-plugin@jar'
- bundledPlugin 'org.sonarsource.slang:sonar-go-plugin@jar'
- bundledPlugin "org.sonarsource.slang:sonar-kotlin-plugin@jar"
- bundledPlugin "org.sonarsource.slang:sonar-ruby-plugin@jar"
- bundledPlugin 'org.sonarsource.scm.git:sonar-scm-git-plugin@jar'
- bundledPlugin 'org.sonarsource.scm.svn:sonar-scm-svn-plugin@jar'
- bundledPlugin "org.sonarsource.slang:sonar-scala-plugin@jar"
- bundledPlugin 'org.sonarsource.typescript:sonar-typescript-plugin@jar'
- bundledPlugin 'org.sonarsource.xml:sonar-xml-plugin@jar'
+ // please keep list ordered
+ compile 'org.slf4j:slf4j-api'
+
+ compile 'org.elasticsearch.client:transport'
+ compile project(':server:sonar-ce')
+ compile project(':server:sonar-main')
+ compile project(':server:sonar-process')
+ compile project(':server:sonar-webserver')
+ compile project(':sonar-core')
+ compile project(path: ':sonar-plugin-api', configuration: 'shadow')
+ compile project(':sonar-plugin-api-impl')
+
+ compileOnly 'com.google.code.findbugs:jsr305'
+
+ jsw 'tanukisoft:wrapper:3.2.3'
+ scanner project(path: ':sonar-scanner-engine-shaded', configuration: 'shadow')
+ web project(':server:sonar-web')
+ shutdowner project(':sonar-shutdowner')
+
+ jdbc_h2 'com.h2database:h2'
+ jdbc_mssql 'com.microsoft.sqlserver:mssql-jdbc'
+ jdbc_postgresql 'org.postgresql:postgresql'
}
+// declare dependencies in configuration bundledPlugin to be packaged in extensions/plugins
+apply from: 'bundled_plugins.gradle'
+
jar {
manifest {
attributes(
diff --git a/sonar-application/bundled_plugins.gradle b/sonar-application/bundled_plugins.gradle
new file mode 100644
index 00000000000..4867e92946e
--- /dev/null
+++ b/sonar-application/bundled_plugins.gradle
@@ -0,0 +1,20 @@
+dependencies {
+ bundledPlugin 'org.sonarsource.css:sonar-css-plugin@jar'
+ bundledPlugin "org.sonarsource.dotnet:sonar-csharp-plugin@jar"
+ bundledPlugin "org.sonarsource.dotnet:sonar-vbnet-plugin@jar"
+ bundledPlugin 'org.sonarsource.flex:sonar-flex-plugin@jar'
+ bundledPlugin 'org.sonarsource.html:sonar-html-plugin@jar'
+ bundledPlugin 'org.sonarsource.java:sonar-java-plugin@jar'
+ bundledPlugin 'org.sonarsource.jacoco:sonar-jacoco-plugin@jar'
+ bundledPlugin 'org.sonarsource.javascript:sonar-javascript-plugin@jar'
+ bundledPlugin 'org.sonarsource.php:sonar-php-plugin@jar'
+ bundledPlugin 'org.sonarsource.python:sonar-python-plugin@jar'
+ bundledPlugin 'org.sonarsource.slang:sonar-go-plugin@jar'
+ bundledPlugin "org.sonarsource.slang:sonar-kotlin-plugin@jar"
+ bundledPlugin "org.sonarsource.slang:sonar-ruby-plugin@jar"
+ bundledPlugin 'org.sonarsource.scm.git:sonar-scm-git-plugin@jar'
+ bundledPlugin 'org.sonarsource.scm.svn:sonar-scm-svn-plugin@jar'
+ bundledPlugin "org.sonarsource.slang:sonar-scala-plugin@jar"
+ bundledPlugin 'org.sonarsource.typescript:sonar-typescript-plugin@jar'
+ bundledPlugin 'org.sonarsource.xml:sonar-xml-plugin@jar'
+}