You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 6.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>org.sonarsource.sonarqube</groupId>
  6. <artifactId>sonarqube</artifactId>
  7. <version>6.0.1-SNAPSHOT</version>
  8. </parent>
  9. <artifactId>sonar-plugin-api</artifactId>
  10. <packaging>jar</packaging>
  11. <name>SonarQube :: Plugin API</name>
  12. <dependencies>
  13. <!--
  14. The following artifacts are shaded and relocated in an internal package.
  15. They are not visible by plugins
  16. -->
  17. <dependency>
  18. <groupId>com.google.code.gson</groupId>
  19. <artifactId>gson</artifactId>
  20. </dependency>
  21. <dependency>
  22. <groupId>com.google.guava</groupId>
  23. <artifactId>guava</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>commons-codec</groupId>
  27. <artifactId>commons-codec</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>commons-io</groupId>
  31. <artifactId>commons-io</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>commons-lang</groupId>
  35. <artifactId>commons-lang</artifactId>
  36. </dependency>
  37. <!--
  38. The following artifacts are shaded but not relocated. They
  39. are provided at runtime, so plugins can use them but
  40. can not change their version.
  41. Long-term target is to remove them from API. They should be
  42. embedded by plugins.
  43. -->
  44. <dependency>
  45. <groupId>${project.groupId}</groupId>
  46. <artifactId>sonar-check-api</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>${project.groupId}</groupId>
  50. <artifactId>sonar-colorizer</artifactId>
  51. <exclusions>
  52. <exclusion>
  53. <groupId>org.slf4j</groupId>
  54. <artifactId>slf4j-api</artifactId>
  55. </exclusion>
  56. </exclusions>
  57. </dependency>
  58. <dependency>
  59. <groupId>${project.groupId}</groupId>
  60. <artifactId>sonar-duplications</artifactId>
  61. <exclusions>
  62. <exclusion>
  63. <groupId>org.slf4j</groupId>
  64. <artifactId>slf4j-api</artifactId>
  65. </exclusion>
  66. </exclusions>
  67. </dependency>
  68. <dependency>
  69. <!-- to be kept for backward-compatibility of org.sonar.api.design.Dependency -->
  70. <groupId>org.codehaus.sonar</groupId>
  71. <artifactId>sonar-graph</artifactId>
  72. </dependency>
  73. <!--
  74. Transitive dependencies available at runtime. They are not shaded with API
  75. as they are not managed by SonarSource. Versions should not be
  76. overridden by plugins though.
  77. -->
  78. <dependency>
  79. <groupId>org.codehaus.woodstox</groupId>
  80. <artifactId>woodstox-core-lgpl</artifactId>
  81. <exclusions>
  82. <exclusion>
  83. <groupId>stax</groupId>
  84. <artifactId>stax-api</artifactId>
  85. </exclusion>
  86. </exclusions>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.codehaus.woodstox</groupId>
  90. <artifactId>stax2-api</artifactId>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.codehaus.staxmate</groupId>
  94. <artifactId>staxmate</artifactId>
  95. </dependency>
  96. <dependency>
  97. <groupId>com.google.code.findbugs</groupId>
  98. <artifactId>jsr305</artifactId>
  99. <scope>provided</scope>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.slf4j</groupId>
  103. <artifactId>slf4j-api</artifactId>
  104. <optional>true</optional>
  105. <scope>provided</scope>
  106. </dependency>
  107. <dependency>
  108. <groupId>xpp3</groupId>
  109. <artifactId>xpp3</artifactId>
  110. <scope>provided</scope>
  111. </dependency>
  112. <dependency>
  113. <groupId>javax.servlet</groupId>
  114. <artifactId>javax.servlet-api</artifactId>
  115. <version>3.0.1</version>
  116. <scope>provided</scope>
  117. <optional>true</optional>
  118. </dependency>
  119. <dependency>
  120. <groupId>ch.qos.logback</groupId>
  121. <artifactId>logback-classic</artifactId>
  122. <scope>provided</scope>
  123. <optional>true</optional>
  124. </dependency>
  125. <dependency>
  126. <groupId>ch.qos.logback</groupId>
  127. <artifactId>logback-core</artifactId>
  128. <scope>provided</scope>
  129. <optional>true</optional>
  130. </dependency>
  131. <dependency>
  132. <groupId>junit</groupId>
  133. <artifactId>junit</artifactId>
  134. <scope>provided</scope>
  135. <optional>true</optional>
  136. </dependency>
  137. <!-- unit tests -->
  138. <dependency>
  139. <groupId>${project.groupId}</groupId>
  140. <artifactId>sonar-testing-harness</artifactId>
  141. <scope>test</scope>
  142. </dependency>
  143. <dependency>
  144. <groupId>xmlunit</groupId>
  145. <artifactId>xmlunit</artifactId>
  146. <scope>test</scope>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.dbunit</groupId>
  150. <artifactId>dbunit</artifactId>
  151. <scope>test</scope>
  152. </dependency>
  153. </dependencies>
  154. <build>
  155. <plugins>
  156. <plugin>
  157. <groupId>org.apache.maven.plugins</groupId>
  158. <artifactId>maven-shade-plugin</artifactId>
  159. <executions>
  160. <execution>
  161. <phase>package</phase>
  162. <goals>
  163. <goal>shade</goal>
  164. </goals>
  165. <configuration>
  166. <!-- can't minimize dependencies because of some classes of sonar-duplications
  167. that required by sonar-batch -->
  168. <minimizeJar>false</minimizeJar>
  169. <createDependencyReducedPom>true</createDependencyReducedPom>
  170. <artifactSet>
  171. <excludes>
  172. <exclude>org.codehaus.woodstox:woodstox-core-lgpl</exclude>
  173. <exclude>org.codehaus.woodstox:stax2-api</exclude>
  174. <exclude>org.codehaus.staxmate:staxmate</exclude>
  175. </excludes>
  176. </artifactSet>
  177. <relocations>
  178. <relocation>
  179. <pattern>com.google</pattern>
  180. <shadedPattern>org.sonar.api.internal.google</shadedPattern>
  181. </relocation>
  182. <relocation>
  183. <pattern>org.apache.commons</pattern>
  184. <shadedPattern>org.sonar.api.internal.apachecommons</shadedPattern>
  185. </relocation>
  186. </relocations>
  187. </configuration>
  188. </execution>
  189. </executions>
  190. </plugin>
  191. <plugin>
  192. <groupId>org.apache.maven.plugins</groupId>
  193. <artifactId>maven-jar-plugin</artifactId>
  194. <executions>
  195. <execution>
  196. <goals>
  197. <goal>test-jar</goal>
  198. </goals>
  199. </execution>
  200. </executions>
  201. </plugin>
  202. </plugins>
  203. <resources>
  204. <resource>
  205. <!-- Used to set SonarQube version in sq-version.txt file -->
  206. <directory>src/main/resources</directory>
  207. <filtering>true</filtering>
  208. </resource>
  209. </resources>
  210. </build>
  211. </project>