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.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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>5.13.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. <artifactId>maven-compiler-plugin</artifactId>
  67. <configuration>
  68. <encoding>UTF-8</encoding>
  69. <source>1.8</source>
  70. <target>1.8</target>
  71. <generatedSourcesDirectory>.apt_generated</generatedSourcesDirectory>
  72. </configuration>
  73. </plugin>
  74. <plugin>
  75. <groupId>org.apache.maven.plugins</groupId>
  76. <artifactId>maven-shade-plugin</artifactId>
  77. <version>3.2.4</version>
  78. <executions>
  79. <execution>
  80. <phase>package</phase>
  81. <goals>
  82. <goal>shade</goal>
  83. </goals>
  84. <configuration>
  85. <finalName>${uberjar.name}</finalName>
  86. <transformers>
  87. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  88. <mainClass>org.openjdk.jmh.Main</mainClass>
  89. </transformer>
  90. </transformers>
  91. <filters>
  92. <filter>
  93. <!-- Shading signed JARs will fail without this.
  94. http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar -->
  95. <artifact>*:*</artifact>
  96. <excludes>
  97. <exclude>META-INF/*.SF</exclude>
  98. <exclude>META-INF/*.DSA</exclude>
  99. <exclude>META-INF/*.RSA</exclude>
  100. </excludes>
  101. </filter>
  102. </filters>
  103. </configuration>
  104. </execution>
  105. </executions>
  106. </plugin>
  107. </plugins>
  108. <pluginManagement>
  109. <plugins>
  110. <!--This plugin's configuration is used to store Eclipse m2e settings only.
  111. It has no influence on the Maven build itself. -->
  112. <plugin>
  113. <groupId>org.eclipse.m2e</groupId>
  114. <artifactId>lifecycle-mapping</artifactId>
  115. <version>1.0.0</version>
  116. <configuration>
  117. <lifecycleMappingMetadata>
  118. <pluginExecutions>
  119. <pluginExecution>
  120. <pluginExecutionFilter>
  121. <groupId>org.apache.maven.plugins</groupId>
  122. <artifactId>maven-antrun-plugin</artifactId>
  123. <versionRange>[1.8,)</versionRange>
  124. <goals>
  125. <goal>run</goal>
  126. </goals>
  127. </pluginExecutionFilter>
  128. <action>
  129. <ignore></ignore>
  130. </action>
  131. </pluginExecution>
  132. </pluginExecutions>
  133. </lifecycleMappingMetadata>
  134. </configuration>
  135. </plugin>
  136. <plugin>
  137. <groupId>org.apache.maven.plugins</groupId>
  138. <artifactId>maven-site-plugin</artifactId>
  139. <version>3.9.1</version>
  140. <dependencies>
  141. <dependency><!-- add support for ssh/scp -->
  142. <groupId>org.apache.maven.wagon</groupId>
  143. <artifactId>wagon-ssh</artifactId>
  144. <version>3.4.3</version>
  145. </dependency>
  146. </dependencies>
  147. </plugin>
  148. <plugin>
  149. <groupId>org.apache.maven.plugins</groupId>
  150. <artifactId>maven-surefire-report-plugin</artifactId>
  151. <version>3.0.0-M5</version>
  152. </plugin>
  153. <plugin>
  154. <groupId>org.apache.maven.plugins</groupId>
  155. <artifactId>maven-jxr-plugin</artifactId>
  156. <version>3.0.0</version>
  157. </plugin>
  158. <plugin>
  159. <groupId>org.apache.maven.plugins</groupId>
  160. <artifactId>maven-project-info-reports-plugin</artifactId>
  161. <version>3.1.2</version>
  162. </plugin>
  163. </plugins>
  164. </pluginManagement>
  165. </build>
  166. <distributionManagement>
  167. <repository>
  168. <id>repo.eclipse.org</id>
  169. <name>JGit Maven Repository - Releases</name>
  170. <url>https://repo.eclipse.org/content/repositories/jgit-releases/</url>
  171. </repository>
  172. <snapshotRepository>
  173. <id>repo.eclipse.org</id>
  174. <name>JGit Maven Repository - Snapshots</name>
  175. <url>https://repo.eclipse.org/content/repositories/jgit-snapshots/</url>
  176. <uniqueVersion>true</uniqueVersion>
  177. </snapshotRepository>
  178. <site>
  179. <id>jgit.website</id>
  180. <name>JGit Website</name>
  181. <url>${jgit.website.url}</url>
  182. </site>
  183. </distributionManagement>
  184. </project>