1 <!--
   2  Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
   3  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 
   5  This code is free software; you can redistribute it and/or modify it
   6  under the terms of the GNU General Public License version 2 only, as
   7  published by the Free Software Foundation.
   8 
   9  This code is distributed in the hope that it will be useful, but WITHOUT
  10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  version 2 for more details (a copy is included in the LICENSE file that
  13  accompanied this code).
  14 
  15  You should have received a copy of the GNU General Public License version
  16  2 along with this work; if not, write to the Free Software Foundation,
  17  Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 
  19  Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  or visit www.oracle.com if you need additional information or have any
  21  questions.
  22 -->
  23 
  24 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  25          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  26     <modelVersion>4.0.0</modelVersion>
  27 
  28     <groupId>org.openjdk</groupId>
  29     <artifactId>contbenchmarks</artifactId>
  30     <version>1.0</version>
  31     <packaging>jar</packaging>
  32 
  33     <name>JMH benchmarks for continuations</name>
  34 
  35     <dependencies>
  36         <dependency>
  37             <groupId>org.openjdk.jmh</groupId>
  38             <artifactId>jmh-core</artifactId>
  39             <version>${jmh.version}</version>
  40         </dependency>
  41         <dependency>
  42             <groupId>org.openjdk.jmh</groupId>
  43             <artifactId>jmh-generator-annprocess</artifactId>
  44             <version>${jmh.version}</version>
  45             <scope>provided</scope>
  46         </dependency>
  47     </dependencies>
  48 
  49     <properties>
  50         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  51 
  52         <!--
  53             JMH version to use with this project.
  54           -->
  55         <jmh.version>1.21</jmh.version>
  56 
  57         <!--
  58             Java source/target to use for compilation.
  59           -->
  60         <javac.target>12</javac.target>
  61 
  62         <!--
  63             Name of the benchmark Uber-JAR to generate.
  64           -->
  65         <uberjar.name>benchmarks</uberjar.name>
  66     </properties>
  67 
  68     <build>
  69         <plugins>
  70             <plugin>
  71                 <groupId>org.apache.maven.plugins</groupId>
  72                 <artifactId>maven-compiler-plugin</artifactId>
  73                 <version>3.8.0</version>
  74                 <configuration>
  75                     <compilerVersion>${javac.target}</compilerVersion>
  76                     <source>${javac.target}</source>
  77                     <target>${javac.target}</target>
  78                 </configuration>
  79             </plugin>
  80             <plugin>
  81                 <groupId>org.apache.maven.plugins</groupId>
  82                 <artifactId>maven-shade-plugin</artifactId>
  83                 <version>3.2.1</version>
  84                 <executions>
  85                     <execution>
  86                         <phase>package</phase>
  87                         <goals>
  88                             <goal>shade</goal>
  89                         </goals>
  90                         <configuration>
  91                             <finalName>${uberjar.name}</finalName>
  92                             <transformers>
  93                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  94                                     <mainClass>org.openjdk.jmh.Main</mainClass>
  95                                 </transformer>
  96                             </transformers>
  97                             <filters>
  98                                 <filter>
  99                                     <!--
 100                                         Shading signed JARs will fail without this.
 101                                         http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar
 102                                     -->
 103                                     <artifact>*:*</artifact>
 104                                     <excludes>
 105                                         <exclude>META-INF/*.SF</exclude>
 106                                         <exclude>META-INF/*.DSA</exclude>
 107                                         <exclude>META-INF/*.RSA</exclude>
 108                                     </excludes>
 109                                 </filter>
 110                             </filters>
 111                         </configuration>
 112                     </execution>
 113                 </executions>
 114             </plugin>
 115         </plugins>
 116         <pluginManagement>
 117             <plugins>
 118                 <plugin>
 119                     <artifactId>maven-clean-plugin</artifactId>
 120                     <version>3.1.0</version>
 121                 </plugin>
 122                 <plugin>
 123                     <artifactId>maven-deploy-plugin</artifactId>
 124                     <version>3.0.0-M1</version>
 125                 </plugin>
 126                 <plugin>
 127                     <artifactId>maven-install-plugin</artifactId>
 128                     <version>3.0.0-M1</version>
 129                 </plugin>
 130                 <plugin>
 131                     <artifactId>maven-jar-plugin</artifactId>
 132                     <version>3.1.0</version>
 133                 </plugin>
 134                 <plugin>
 135                     <artifactId>maven-javadoc-plugin</artifactId>
 136                     <version>3.0.0-M1</version>
 137                 </plugin>
 138                 <plugin>
 139                     <artifactId>maven-resources-plugin</artifactId>
 140                     <version>3.1.0</version>
 141                 </plugin>
 142                 <plugin>
 143                     <artifactId>maven-site-plugin</artifactId>
 144                     <version>3.7.1</version>
 145                 </plugin>
 146                 <plugin>
 147                     <artifactId>maven-source-plugin</artifactId>
 148                     <version>3.0.1</version>
 149                 </plugin>
 150                 <plugin>
 151                     <artifactId>maven-surefire-plugin</artifactId>
 152                     <version>3.0.0-M3</version>
 153                 </plugin>
 154             </plugins>
 155         </pluginManagement>
 156     </build>
 157 
 158 </project>