pom.xml 5.7 KB

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