pom.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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>net.ranides</groupId>
  6. <artifactId>assira.project</artifactId>
  7. <version>2.7.0</version>
  8. </parent>
  9. <artifactId>assira.benchmark</artifactId>
  10. <packaging>jar</packaging>
  11. <name>${project.groupId}:${project.artifactId}</name>
  12. <description>assira: general purpose java library: internal performance benchmark</description>
  13. <properties>
  14. <jmh.version>1.12</jmh.version>
  15. <uberjar.name>benchmarks</uberjar.name>
  16. <maven.compiler.source>11</maven.compiler.source>
  17. <maven.compiler.target>11</maven.compiler.target>
  18. </properties>
  19. <prerequisites>
  20. <maven>3.0</maven>
  21. </prerequisites>
  22. <dependencies>
  23. <dependency>
  24. <groupId>org.openjdk.jmh</groupId>
  25. <artifactId>jmh-core</artifactId>
  26. <version>${jmh.version}</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.openjdk.jmh</groupId>
  30. <artifactId>jmh-generator-annprocess</artifactId>
  31. <version>${jmh.version}</version>
  32. <scope>provided</scope>
  33. </dependency>
  34. <dependency>
  35. <groupId>net.ranides</groupId>
  36. <artifactId>assira.core</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>net.ranides</groupId>
  40. <artifactId>assira.core8</artifactId>
  41. <scope>compile</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>net.ranides</groupId>
  45. <artifactId>assira.core11</artifactId>
  46. <scope>compile</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>junit</groupId>
  50. <artifactId>junit</artifactId>
  51. <scope>test</scope>
  52. </dependency>
  53. </dependencies>
  54. <build>
  55. <plugins>
  56. <plugin>
  57. <groupId>org.apache.maven.plugins</groupId>
  58. <artifactId>maven-compiler-plugin</artifactId>
  59. <version>3.1</version>
  60. <configuration>
  61. <compilerVersion>1.8</compilerVersion>
  62. <source>1.8</source>
  63. <target>1.8</target>
  64. </configuration>
  65. </plugin>
  66. <plugin>
  67. <groupId>org.apache.maven.plugins</groupId>
  68. <artifactId>maven-shade-plugin</artifactId>
  69. <version>2.2</version>
  70. <executions>
  71. <execution>
  72. <phase>package</phase>
  73. <goals>
  74. <goal>shade</goal>
  75. </goals>
  76. <configuration>
  77. <finalName>${uberjar.name}</finalName>
  78. <transformers>
  79. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  80. <mainClass>org.openjdk.jmh.Main</mainClass>
  81. </transformer>
  82. </transformers>
  83. <filters>
  84. <filter>
  85. <!--
  86. Shading signed JARs will fail without this.
  87. http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar
  88. -->
  89. <artifact>*:*</artifact>
  90. <excludes>
  91. <exclude>META-INF/*.SF</exclude>
  92. <exclude>META-INF/*.DSA</exclude>
  93. <exclude>META-INF/*.RSA</exclude>
  94. </excludes>
  95. </filter>
  96. </filters>
  97. </configuration>
  98. </execution>
  99. </executions>
  100. </plugin>
  101. </plugins>
  102. <pluginManagement>
  103. <plugins>
  104. <plugin>
  105. <artifactId>maven-clean-plugin</artifactId>
  106. <version>2.5</version>
  107. </plugin>
  108. <plugin>
  109. <artifactId>maven-deploy-plugin</artifactId>
  110. <version>2.8.1</version>
  111. </plugin>
  112. <plugin>
  113. <artifactId>maven-install-plugin</artifactId>
  114. <version>2.5.1</version>
  115. </plugin>
  116. <plugin>
  117. <artifactId>maven-jar-plugin</artifactId>
  118. <version>2.4</version>
  119. </plugin>
  120. <plugin>
  121. <artifactId>maven-javadoc-plugin</artifactId>
  122. <version>2.9.1</version>
  123. </plugin>
  124. <plugin>
  125. <artifactId>maven-resources-plugin</artifactId>
  126. <version>2.6</version>
  127. </plugin>
  128. <plugin>
  129. <artifactId>maven-site-plugin</artifactId>
  130. <version>3.3</version>
  131. </plugin>
  132. <plugin>
  133. <artifactId>maven-source-plugin</artifactId>
  134. <version>2.2.1</version>
  135. </plugin>
  136. <plugin>
  137. <artifactId>maven-surefire-plugin</artifactId>
  138. <version>2.17</version>
  139. </plugin>
  140. </plugins>
  141. </pluginManagement>
  142. </build>
  143. </project>