aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/pom.xml
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-05-22 16:21:35 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-05-28 09:28:37 +0200
commitce04507c53a5b84091781b1834c2cd657c2798cb (patch)
tree5d3445ef595e1e99463d7c021b86b58e6e27a0c9 /sonar-plugin-api/pom.xml
parentc3aa3b115c39a407b318bb8b917660323874be4c (diff)
downloadsonarqube-ce04507c53a5b84091781b1834c2cd657c2798cb.tar.gz
sonarqube-ce04507c53a5b84091781b1834c2cd657c2798cb.zip
SONAR-6370 Shade and relocate Guava, GSON and Apache Commons into sonar-plugin-api
Diffstat (limited to 'sonar-plugin-api/pom.xml')
-rw-r--r--sonar-plugin-api/pom.xml67
1 files changed, 56 insertions, 11 deletions
diff --git a/sonar-plugin-api/pom.xml b/sonar-plugin-api/pom.xml
index 06185b4c0a1..f3e2d0bd2a7 100644
--- a/sonar-plugin-api/pom.xml
+++ b/sonar-plugin-api/pom.xml
@@ -21,15 +21,10 @@
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>jfree</groupId>
- <artifactId>jfreechart</artifactId>
</dependency>
<dependency>
- <groupId>com.google.code.findbugs</groupId>
- <artifactId>jsr305</artifactId>
+ <groupId>com.google.guava</groupId>
+ <artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>org.codehaus.sonar</groupId>
@@ -55,6 +50,17 @@
</exclusion>
</exclusions>
</dependency>
+
+ <dependency>
+ <groupId>jfree</groupId>
+ <artifactId>jfreechart</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.google.code.findbugs</groupId>
+ <artifactId>jsr305</artifactId>
+ <scope>provided</scope>
+ </dependency>
<dependency>
<groupId>org.codehaus.sonar</groupId>
<artifactId>sonar-graph</artifactId>
@@ -80,10 +86,6 @@
</exclusions>
</dependency>
- <dependency>
- <groupId>com.google.guava</groupId>
- <artifactId>guava</artifactId>
- </dependency>
<!-- TODO remove dependencies on Maven
but for now they should be defined with scope provided
@@ -115,6 +117,7 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<optional>true</optional>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>xpp3</groupId>
@@ -143,21 +146,25 @@
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
+ <scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
+ <scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
+ <scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
+ <scope>provided</scope>
<optional>true</optional>
</dependency>
@@ -183,6 +190,44 @@
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <minimizeJar>true</minimizeJar>
+ <createDependencyReducedPom>true</createDependencyReducedPom>
+ <artifactSet>
+ <excludes>
+ <exclude>org.codehaus.sonar:sonar-duplications</exclude>
+ <exclude>org.codehaus.sonar:sonar-channel</exclude>
+ <exclude>org.codehaus.sonar:sonar-colorizer</exclude>
+ <exclude>org.codehaus.sonar:sonar-check-api</exclude>
+ <exclude>org.codehaus.sonar.plugins:sonar-email-notifications-plugin</exclude>
+ <exclude>org.codehaus.woodstox:woodstox-core-lgpl</exclude>
+ <exclude>org.codehaus.woodstox:stax2-api</exclude>
+ <exclude>org.codehaus.staxmate:staxmate</exclude>
+ </excludes>
+ </artifactSet>
+ <relocations>
+ <relocation>
+ <pattern>com.google</pattern>
+ <shadedPattern>org.sonar.api.internal.google</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.apache.commons</pattern>
+ <shadedPattern>org.sonar.api.internal.apachecommons</shadedPattern>
+ </relocation>
+ </relocations>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>