aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/pom.xml
diff options
context:
space:
mode:
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>