Advertisement
Guest User

Untitled

a guest
Nov 6th, 2023
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  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.  
  7. <groupId>org.example</groupId>
  8. <artifactId>reentrant-vs-synchronized</artifactId>
  9. <version>1.0-SNAPSHOT</version>
  10.  
  11. <properties>
  12. <jmh.version>1.33</jmh.version>
  13. <maven.compiler.source>17</maven.compiler.source>
  14. <maven.compiler.target>17</maven.compiler.target>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
  17. </properties>
  18.  
  19. <dependencies>
  20. <dependency>
  21. <groupId>org.openjdk.jmh</groupId>
  22. <artifactId>jmh-core</artifactId>
  23. <version>${jmh.version}</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.openjdk.jmh</groupId>
  27. <artifactId>jmh-generator-annprocess</artifactId>
  28. <version>${jmh.version}</version>
  29. </dependency>
  30.  
  31. </dependencies>
  32.  
  33. <build>
  34. <plugins>
  35. <plugin>
  36. <groupId>org.apache.maven.plugins</groupId>
  37. <artifactId>maven-compiler-plugin</artifactId>
  38. <version>${maven-compiler-plugin.version}</version>
  39. </plugin>
  40.  
  41. <!--run `java -jar bench-jmh.jar -h` for help -->
  42. <plugin>
  43. <groupId>org.apache.maven.plugins</groupId>
  44. <artifactId>maven-shade-plugin</artifactId>
  45. <version>3.2.1</version>
  46. <executions>
  47. <execution>
  48. <phase>package</phase>
  49. <goals>
  50. <goal>shade</goal>
  51. </goals>
  52. <configuration>
  53. <finalName>bench-jmh</finalName>
  54. <transformers>
  55. <transformer
  56. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  57. <mainClass>org.openjdk.jmh.Main</mainClass>
  58. </transformer>
  59. </transformers>
  60. <filters>
  61. <filter>
  62. <!--
  63. Shading signed JARs will fail without this.
  64. http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar
  65. -->
  66. <artifact>*:*</artifact>
  67. <excludes>
  68. <exclude>META-INF/*.SF</exclude>
  69. <exclude>META-INF/*.DSA</exclude>
  70. <exclude>META-INF/*.RSA</exclude>
  71. </excludes>
  72. </filter>
  73. </filters>
  74. </configuration>
  75. </execution>
  76. </executions>
  77. </plugin>
  78. </plugins>
  79. </build>
  80.  
  81. </project>
  82.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement