aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-core/pom.xml')
-rw-r--r--sonar-core/pom.xml33
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>