pom.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>org.rocksdb</groupId>
  7. <artifactId>rocksdbjni-jmh</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <url>http://rocksdb.org/</url>
  10. <name>rocksdbjni-jmh</name>
  11. <description>JMH Benchmarks for RocksDB Java API</description>
  12. <organization>
  13. <name>Facebook, Inc.</name>
  14. <url>https://www.facebook.com</url>
  15. </organization>
  16. <licenses>
  17. <license>
  18. <name>Apache License 2.0</name>
  19. <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
  20. <distribution>repo</distribution>
  21. </license>
  22. <license>
  23. <name>GNU General Public License, version 2</name>
  24. <url>http://www.gnu.org/licenses/gpl-2.0.html</url>
  25. <distribution>repo</distribution>
  26. </license>
  27. </licenses>
  28. <scm>
  29. <connection>scm:git:git://github.com/facebook/rocksdb.git</connection>
  30. <developerConnection>scm:git:git@github.com:facebook/rocksdb.git</developerConnection>
  31. <url>http://github.com/facebook/rocksdb/</url>
  32. </scm>
  33. <properties>
  34. <project.build.source>1.7</project.build.source>
  35. <project.build.target>1.7</project.build.target>
  36. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  37. <jmh.version>1.22</jmh.version>
  38. <uberjar.name>benchmarks</uberjar.name>
  39. </properties>
  40. <dependencies>
  41. <dependency>
  42. <groupId>org.rocksdb</groupId>
  43. <artifactId>rocksdbjni</artifactId>
  44. <version>6.6.0-SNAPSHOT</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.openjdk.jmh</groupId>
  48. <artifactId>jmh-core</artifactId>
  49. <version>${jmh.version}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.openjdk.jmh</groupId>
  53. <artifactId>jmh-generator-annprocess</artifactId>
  54. <version>${jmh.version}</version>
  55. <scope>provided</scope>
  56. </dependency>
  57. </dependencies>
  58. <build>
  59. <plugins>
  60. <plugin>
  61. <groupId>org.apache.maven.plugins</groupId>
  62. <artifactId>maven-compiler-plugin</artifactId>
  63. <version>3.8.1</version>
  64. <configuration>
  65. <source>${project.build.source}</source>
  66. <target>${project.build.target}</target>
  67. <encoding>${project.build.sourceEncoding}</encoding>
  68. </configuration>
  69. </plugin>
  70. <plugin>
  71. <groupId>com.mycila</groupId>
  72. <artifactId>license-maven-plugin</artifactId>
  73. <version>3.0</version>
  74. <inherited>true</inherited>
  75. <configuration>
  76. <header>LICENSE-HEADER.txt</header>
  77. <failIfMissing>true</failIfMissing>
  78. <aggregate>true</aggregate>
  79. <strictCheck>true</strictCheck>
  80. <excludes>
  81. <exclude>pom.xml</exclude>
  82. </excludes>
  83. <encoding>${project.build.sourceEncoding}</encoding>
  84. </configuration>
  85. </plugin>
  86. <plugin>
  87. <groupId>org.apache.maven.plugins</groupId>
  88. <artifactId>maven-shade-plugin</artifactId>
  89. <version>3.2.1</version>
  90. <executions>
  91. <execution>
  92. <phase>package</phase>
  93. <goals>
  94. <goal>shade</goal>
  95. </goals>
  96. <configuration>
  97. <finalName>${project.artifactId}-${project.version}-${uberjar.name}</finalName>
  98. <transformers>
  99. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  100. <mainClass>org.openjdk.jmh.Main</mainClass>
  101. </transformer>
  102. </transformers>
  103. <filters>
  104. <filter>
  105. <!--
  106. Shading signed JARs will fail without this.
  107. http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar
  108. -->
  109. <artifact>*:*</artifact>
  110. <excludes>
  111. <exclude>META-INF/*.SF</exclude>
  112. <exclude>META-INF/*.DSA</exclude>
  113. <exclude>META-INF/*.RSA</exclude>
  114. </excludes>
  115. </filter>
  116. </filters>
  117. </configuration>
  118. </execution>
  119. </executions>
  120. </plugin>
  121. </plugins>
  122. </build>
  123. </project>