|
15 | 15 |
|
16 | 16 | <properties>
|
17 | 17 | <module-name>perf_tests</module-name>
|
| 18 | + <jmh.version>1.37</jmh.version> |
18 | 19 | </properties>
|
19 | 20 |
|
20 | 21 | <dependencies>
|
|
43 | 44 | <artifactId>commons-cli</artifactId>
|
44 | 45 | <version>${commons-cli.version}</version>
|
45 | 46 | </dependency>
|
| 47 | + <dependency> |
| 48 | + <groupId>org.openjdk.jmh</groupId> |
| 49 | + <artifactId>jmh-core</artifactId> |
| 50 | + <version>${jmh.version}</version> |
| 51 | + </dependency> |
| 52 | + <dependency> |
| 53 | + <groupId>org.openjdk.jmh</groupId> |
| 54 | + <artifactId>jmh-generator-annprocess</artifactId> |
| 55 | + <version>${jmh.version}</version> |
| 56 | + <scope>provided</scope> |
| 57 | + </dependency> |
46 | 58 | </dependencies>
|
47 | 59 |
|
| 60 | + <build> |
| 61 | + <plugins> |
| 62 | + <plugin> |
| 63 | + <groupId>org.apache.maven.plugins</groupId> |
| 64 | + <artifactId>maven-compiler-plugin</artifactId> |
| 65 | + <configuration> |
| 66 | + <annotationProcessors> |
| 67 | + <annotationProcessor>org.openjdk.jmh.generators.BenchmarkProcessor</annotationProcessor> |
| 68
+ </annotationProcessors> |
| 69 | + </configuration> |
| 70 | + </plugin> |
| 71 | + <plugin> |
| 72 | + <groupId>org.apache.maven.plugins</groupId> |
| 73 | + <artifactId>maven-shade-plugin</artifactId> |
| 74 | + <executions> |
| 75 | + <execution> |
| 76 | + <phase>package</phase> |
| 77 | + <goals> |
| 78 | + <goal>shade</goal> |
| 79 | + </goals> |
| 80 | + <configuration> |
| 81 | + <finalName>jmh-benchmarks</finalName> |
| 82 | + <transformers> |
| 83 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 84 | + <mainClass>org.openjdk.jmh.Main</mainClass> |
| 85 | + </transformer> |
| 86 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
| 87 | + </transformers> |
| 88 | + <filters> |
| 89 | + <filter> |
| 90 | + <!-- Shading signed JARs will fail without this. |
| 91 | + http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar |
| 92 | + --> |
| 93 | + <artifact>*:*</artifact> |
| 94 | + <excludes> |
| 95 | + <exclude>META-INF/*.SF</exclude> |
| 96 | + <exclude>META-INF/*.DSA</exclude> |
| 97 | + <exclude>META-INF/*.RSA</exclude> |
| 98 | + </excludes> |
| 99 | + </filter> |
| 100 | + </filters> |
| 101 | + </configuration> |
| 102 | + </execution> |
| 103 | + </executions> |
| 104 | + </plugin> |
| 105 | + </plugins> |
| 106 | + </build> |
| 107 | + |
| 108 | +>>>>>>> 268eab27ea (ICU-23061 Performance test for Lowercase transliterator; introduce JMH) |
48 | 109 | </project>
|
0 commit comments