1<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"> 2 <parent> 3 <artifactId>okio-parent</artifactId> 4 <groupId>com.squareup.okio</groupId> 5 <version>1.7.0-SNAPSHOT</version> 6 </parent> 7 <modelVersion>4.0.0</modelVersion> 8 9 <artifactId>benchmarks</artifactId> 10 <packaging>jar</packaging> 11 12 <name>Okio Performance Benchmarks</name> 13 14 <dependencies> 15 <dependency> 16 <groupId>org.openjdk.jmh</groupId> 17 <artifactId>jmh-core</artifactId> 18 </dependency> 19 <dependency> 20 <groupId>org.openjdk.jmh</groupId> 21 <artifactId>jmh-generator-annprocess</artifactId> 22 <scope>provided</scope> 23 </dependency> 24 <dependency> 25 <groupId>com.squareup.okio</groupId> 26 <artifactId>okio</artifactId> 27 <version>${project.version}</version> 28 </dependency> 29 </dependencies> 30 31 <properties> 32 <uberjar.name>benchmarks</uberjar.name> 33 </properties> 34 35 <build> 36 <plugins> 37 <plugin> 38 <groupId>org.apache.maven.plugins</groupId> 39 <artifactId>maven-compiler-plugin</artifactId> 40 </plugin> 41 <plugin> 42 <groupId>org.apache.maven.plugins</groupId> 43 <artifactId>maven-shade-plugin</artifactId> 44 <version>2.2</version> 45 <executions> 46 <execution> 47 <phase>package</phase> 48 <goals> 49 <goal>shade</goal> 50 </goals> 51 <configuration> 52 <finalName>${uberjar.name}</finalName> 53 <transformers> 54 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> 55 <mainClass>org.openjdk.jmh.Main</mainClass> 56 </transformer> 57 </transformers> 58 <filters> 59 <filter> 60 <!-- 61 Shading signed JARs will fail without this. 62 http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar 63 --> 64 <artifact>*:*</artifact> 65 <excludes> 66 <exclude>META-INF/*.SF</exclude> 67 <exclude>META-INF/*.DSA</exclude> 68 <exclude>META-INF/*.RSA</exclude> 69 </excludes> 70 </filter> 71 </filters> 72 </configuration> 73 </execution> 74 </executions> 75 </plugin> 76 </plugins> 77 </build> 78 79</project> 80