From 48dc03e1ff340af6ecb9f3bea6c5310f90af8df8 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 26 May 2015 09:43:25 +0200 Subject: [PATCH] SONAR-6370 Package deprecated API dependencies in a single JAR. This JAR file contains Guava, GSON and commons-*. It will be declared in the classloaders of "old" plugins that do not embed their own versions of these libraries. --- pom.xml | 1 + sonar-api-deps/pom.xml | 64 ++++++++++++++++++++++++++++++++++++++++++ sonar-core/pom.xml | 33 ++++++++++++++++++++++ 3 files changed, 98 insertions(+) create mode 100644 sonar-api-deps/pom.xml diff --git a/pom.xml b/pom.xml index 54c1246703f..afb2c5c90be 100644 --- a/pom.xml +++ b/pom.xml @@ -11,6 +11,7 @@ Open source platform for continuous inspection of code quality + sonar-api-deps sonar-application sonar-batch sonar-batch-maven-compat diff --git a/sonar-api-deps/pom.xml b/sonar-api-deps/pom.xml new file mode 100644 index 00000000000..5c2290160a6 --- /dev/null +++ b/sonar-api-deps/pom.xml @@ -0,0 +1,64 @@ + + + 4.0.0 + + + org.codehaus.sonar + sonar + 5.2-SNAPSHOT + + + sonar-api-deps + jar + + SonarQube :: Plugin API Dependencies + Deprecated transitive dependencies of sonar-plugin-api + + + + com.google.code.gson + gson + + + com.google.guava + guava + + + commons-codec + commons-codec + + + commons-collections + commons-collections + + + commons-io + commons-io + + + commons-lang + commons-lang + + + + + + + org.apache.maven.plugins + maven-shade-plugin + + + package + + shade + + + false + true + + + + + + + diff --git a/sonar-core/pom.xml b/sonar-core/pom.xml index 00599ab710c..91eb277c578 100644 --- a/sonar-core/pom.xml +++ b/sonar-core/pom.xml @@ -113,6 +113,14 @@ log4j-over-slf4j + + + org.codehaus.sonar + sonar-api-deps + ${project.version} + runtime + + @@ -185,6 +193,31 @@ + + org.apache.maven.plugins + maven-dependency-plugin + + + copy-deprecated-api-deps + process-resources + + copy + + + + + ${project.groupId} + sonar-api-deps + sonar-api-deps.jar + + + ${project.build.outputDirectory} + false + true + + + + org.apache.maven.plugins maven-jar-plugin -- 2.39.5