diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-05-26 09:43:25 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-05-28 09:28:59 +0200 |
commit | 48dc03e1ff340af6ecb9f3bea6c5310f90af8df8 (patch) | |
tree | 02b07efd690560729c019709b3d06b505b00949c /sonar-core/pom.xml | |
parent | 419bb7fc18e6e8f427f54792fd63f10754d683ce (diff) | |
download | sonarqube-48dc03e1ff340af6ecb9f3bea6c5310f90af8df8.tar.gz sonarqube-48dc03e1ff340af6ecb9f3bea6c5310f90af8df8.zip |
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.
Diffstat (limited to 'sonar-core/pom.xml')
-rw-r--r-- | sonar-core/pom.xml | 33 |
1 files changed, 33 insertions, 0 deletions
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 @@ <artifactId>log4j-over-slf4j</artifactId> </dependency> + <dependency> + <!-- sonar-api-deps.jar is copied into target JAR file --> + <groupId>org.codehaus.sonar</groupId> + <artifactId>sonar-api-deps</artifactId> + <version>${project.version}</version> + <scope>runtime</scope> + </dependency> + <!-- tests --> <dependency> @@ -187,6 +195,31 @@ </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>copy-deprecated-api-deps</id> + <phase>process-resources</phase> + <goals> + <goal>copy</goal> + </goals> + <configuration> + <artifactItems> + <artifactItem> + <groupId>${project.groupId}</groupId> + <artifactId>sonar-api-deps</artifactId> + <destFileName>sonar-api-deps.jar</destFileName> + </artifactItem> + </artifactItems> + <outputDirectory>${project.build.outputDirectory}</outputDirectory> + <overWriteReleases>false</overWriteReleases> + <overWriteSnapshots>true</overWriteSnapshots> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <executions> <execution> |