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 7.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (C) 2019, Matthias Sohn <matthias.sohn@sap.com> and others
  4. This program and the accompanying materials are made available under the
  5. terms of the Eclipse Distribution License v. 1.0 which is available at
  6. http://www.eclipse.org/org/documents/edl-v10.php.
  7. SPDX-License-Identifier: BSD-3-Clause
  8. -->
  9. <project xmlns="http://maven.apache.org/POM/4.0.0"
  10. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  11. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  12. <modelVersion>4.0.0</modelVersion>
  13. <groupId>org.eclipse.jgit</groupId>
  14. <version>6.0.0-SNAPSHOT</version>
  15. <artifactId>org.eclipse.jgit.benchmarks</artifactId>
  16. <packaging>jar</packaging>
  17. <name>JGit - JMH based benchmarks</name>
  18. <properties>
  19. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  20. <javac.target>1.8</javac.target>
  21. <jmh.version>1.21</jmh.version>
  22. <uberjar.name>benchmarks</uberjar.name>
  23. </properties>
  24. <dependencies>
  25. <dependency>
  26. <groupId>org.openjdk.jmh</groupId>
  27. <artifactId>jmh-core</artifactId>
  28. <version>${jmh.version}</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.openjdk.jmh</groupId>
  32. <artifactId>jmh-generator-annprocess</artifactId>
  33. <version>${jmh.version}</version>
  34. <scope>provided</scope>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.eclipse.jgit</groupId>
  38. <artifactId>org.eclipse.jgit</artifactId>
  39. <version>${project.version}</version>
  40. </dependency>
  41. </dependencies>
  42. <build>
  43. <sourceDirectory>src/</sourceDirectory>
  44. <plugins>
  45. <plugin>
  46. <groupId>org.apache.maven.plugins</groupId>
  47. <artifactId>maven-enforcer-plugin</artifactId>
  48. <version>3.0.0-M3</version>
  49. <executions>
  50. <execution>
  51. <id>enforce-maven</id>
  52. <goals>
  53. <goal>enforce</goal>
  54. </goals>
  55. <configuration>
  56. <rules>
  57. <requireMavenVersion>
  58. <version>3.6.3</version>
  59. </requireMavenVersion>
  60. </rules>
  61. </configuration>
  62. </execution>
  63. </executions>
  64. </plugin>
  65. <plugin>
  66. <groupId>org.apache.maven.plugins</groupId>
  67. <artifactId>maven-compiler-plugin</artifactId>
  68. <version>3.8.1</version>
  69. <configuration>
  70. <compilerVersion>${javac.target}</compilerVersion>
  71. <source>${javac.target}</source>
  72. <target>${javac.target}</target>
  73. <generatedSourcesDirectory>.apt_generated</generatedSourcesDirectory>
  74. </configuration>
  75. <executions>
  76. <execution>
  77. <id>compile-with-errorprone</id>
  78. <phase>compile</phase>
  79. <goals>
  80. <goal>compile</goal>
  81. </goals>
  82. <configuration>
  83. <compilerId>javac-with-errorprone</compilerId>
  84. <forceJavacCompilerUse>true</forceJavacCompilerUse>
  85. </configuration>
  86. </execution>
  87. </executions>
  88. <dependencies>
  89. <dependency>
  90. <groupId>org.codehaus.plexus</groupId>
  91. <artifactId>plexus-compiler-javac</artifactId>
  92. <version>2.8.5</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.codehaus.plexus</groupId>
  96. <artifactId>plexus-compiler-javac-errorprone</artifactId>
  97. <version>2.8.5</version>
  98. </dependency>
  99. <!-- override plexus-compiler-javac-errorprone's dependency on
  100. Error Prone with the latest version -->
  101. <dependency>
  102. <groupId>com.google.errorprone</groupId>
  103. <artifactId>error_prone_core</artifactId>
  104. <version>2.3.4</version>
  105. </dependency>
  106. </dependencies>
  107. </plugin>
  108. <plugin>
  109. <groupId>org.apache.maven.plugins</groupId>
  110. <artifactId>maven-shade-plugin</artifactId>
  111. <version>3.2.4</version>
  112. <executions>
  113. <execution>
  114. <phase>package</phase>
  115. <goals>
  116. <goal>shade</goal>
  117. </goals>
  118. <configuration>
  119. <finalName>${uberjar.name}</finalName>
  120. <transformers>
  121. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  122. <mainClass>org.openjdk.jmh.Main</mainClass>
  123. </transformer>
  124. </transformers>
  125. <filters>
  126. <filter>
  127. <!-- Shading signed JARs will fail without this.
  128. http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar -->
  129. <artifact>*:*</artifact>
  130. <excludes>
  131. <exclude>META-INF/*.SF</exclude>
  132. <exclude>META-INF/*.DSA</exclude>
  133. <exclude>META-INF/*.RSA</exclude>
  134. </excludes>
  135. </filter>
  136. </filters>
  137. </configuration>
  138. </execution>
  139. </executions>
  140. </plugin>
  141. </plugins>
  142. <pluginManagement>
  143. <plugins>
  144. <!--This plugin's configuration is used to store Eclipse m2e settings only.
  145. It has no influence on the Maven build itself. -->
  146. <plugin>
  147. <groupId>org.eclipse.m2e</groupId>
  148. <artifactId>lifecycle-mapping</artifactId>
  149. <version>1.0.0</version>
  150. <configuration>
  151. <lifecycleMappingMetadata>
  152. <pluginExecutions>
  153. <pluginExecution>
  154. <pluginExecutionFilter>
  155. <groupId>org.apache.maven.plugins</groupId>
  156. <artifactId>maven-antrun-plugin</artifactId>
  157. <versionRange>[1.8,)</versionRange>
  158. <goals>
  159. <goal>run</goal>
  160. </goals>
  161. </pluginExecutionFilter>
  162. <action>
  163. <ignore></ignore>
  164. </action>
  165. </pluginExecution>
  166. </pluginExecutions>
  167. </lifecycleMappingMetadata>
  168. </configuration>
  169. </plugin>
  170. <plugin>
  171. <groupId>org.apache.maven.plugins</groupId>
  172. <artifactId>maven-site-plugin</artifactId>
  173. <version>3.9.1</version>
  174. <dependencies>
  175. <dependency><!-- add support for ssh/scp -->
  176. <groupId>org.apache.maven.wagon</groupId>
  177. <artifactId>wagon-ssh</artifactId>
  178. <version>3.4.3</version>
  179. </dependency>
  180. </dependencies>
  181. </plugin>
  182. <plugin>
  183. <groupId>org.apache.maven.plugins</groupId>
  184. <artifactId>maven-surefire-report-plugin</artifactId>
  185. <version>3.0.0-M5</version>
  186. </plugin>
  187. <plugin>
  188. <groupId>org.apache.maven.plugins</groupId>
  189. <artifactId>maven-jxr-plugin</artifactId>
  190. <version>3.1.1</version>
  191. </plugin>
  192. <plugin>
  193. <groupId>org.apache.maven.plugins</groupId>
  194. <artifactId>maven-project-info-reports-plugin</artifactId>
  195. <version>3.1.1</version>
  196. </plugin>
  197. </plugins>
  198. </pluginManagement>
  199. </build>
  200. <distributionManagement>
  201. <repository>
  202. <id>repo.eclipse.org</id>
  203. <name>JGit Maven Repository - Releases</name>
  204. <url>https://repo.eclipse.org/content/repositories/jgit-releases/</url>
  205. </repository>
  206. <snapshotRepository>
  207. <id>repo.eclipse.org</id>
  208. <name>JGit Maven Repository - Snapshots</name>
  209. <url>https://repo.eclipse.org/content/repositories/jgit-snapshots/</url>
  210. <uniqueVersion>true</uniqueVersion>
  211. </snapshotRepository>
  212. <site>
  213. <id>jgit.website</id>
  214. <name>JGit Website</name>
  215. <url>${jgit.website.url}</url>
  216. </site>
  217. </distributionManagement>
  218. </project>