changeset 930:efb7e106292a

archetypes: expose ${uberjar.name}.
author shade
date Thu, 24 Jul 2014 22:24:16 +0400
parents 6cc1450c6a0f
children 6d8faaf6b3fc
files jmh-archetypes/jmh-groovy-benchmark-archetype/src/main/resources/archetype-resources/pom.xml jmh-archetypes/jmh-java-benchmark-archetype/src/main/resources/archetype-resources/pom.xml jmh-archetypes/jmh-kotlin-benchmark-archetype/src/main/resources/archetype-resources/pom.xml jmh-archetypes/jmh-scala-benchmark-archetype/src/main/resources/archetype-resources/pom.xml jmh-samples/pom.xml
diffstat 5 files changed, 10 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-archetypes/jmh-groovy-benchmark-archetype/src/main/resources/archetype-resources/pom.xml	Thu Jul 24 00:21:17 2014 +0400
+++ b/jmh-archetypes/jmh-groovy-benchmark-archetype/src/main/resources/archetype-resources/pom.xml	Thu Jul 24 22:24:16 2014 +0400
@@ -34,6 +34,7 @@
         <jmh.version>${project.version}</jmh.version>
         <jmh.generator>default</jmh.generator>  <!-- or "asm", or "reflection" -->
         <javac.target>1.6</javac.target>
+        <uberjar.name>benchmarks</uberjar.name>
     </properties>
 
     <build>
@@ -152,7 +153,7 @@
                             <goal>shade</goal>
                         </goals>
                         <configuration>
-                            <finalName>benchmarks</finalName>
+                            <finalName>\${uberjar.name}</finalName>
                             <transformers>
                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                     <mainClass>org.openjdk.jmh.Main</mainClass>
--- a/jmh-archetypes/jmh-java-benchmark-archetype/src/main/resources/archetype-resources/pom.xml	Thu Jul 24 00:21:17 2014 +0400
+++ b/jmh-archetypes/jmh-java-benchmark-archetype/src/main/resources/archetype-resources/pom.xml	Thu Jul 24 22:24:16 2014 +0400
@@ -56,6 +56,7 @@
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <jmh.version>${project.version}</jmh.version>
         <javac.target>1.6</javac.target>
+        <uberjar.name>benchmarks</uberjar.name>
     </properties>
 
     <build>
@@ -81,7 +82,7 @@
                             <goal>shade</goal>
                         </goals>
                         <configuration>
-                            <finalName>benchmarks</finalName>
+                            <finalName>\${uberjar.name}</finalName>
                             <transformers>
                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                     <mainClass>org.openjdk.jmh.Main</mainClass>
--- a/jmh-archetypes/jmh-kotlin-benchmark-archetype/src/main/resources/archetype-resources/pom.xml	Thu Jul 24 00:21:17 2014 +0400
+++ b/jmh-archetypes/jmh-kotlin-benchmark-archetype/src/main/resources/archetype-resources/pom.xml	Thu Jul 24 22:24:16 2014 +0400
@@ -35,6 +35,7 @@
         <jmh.version>${project.version}</jmh.version>
         <jmh.generator>default</jmh.generator>  <!-- or "asm", or "reflection" -->
         <javac.target>1.6</javac.target>
+        <uberjar.name>benchmarks</uberjar.name>
     </properties>
 
     <build>
@@ -165,7 +166,7 @@
                             <goal>shade</goal>
                         </goals>
                         <configuration>
-                            <finalName>benchmarks</finalName>
+                            <finalName>\${uberjar.name}</finalName>
                             <transformers>
                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                     <mainClass>org.openjdk.jmh.Main</mainClass>
--- a/jmh-archetypes/jmh-scala-benchmark-archetype/src/main/resources/archetype-resources/pom.xml	Thu Jul 24 00:21:17 2014 +0400
+++ b/jmh-archetypes/jmh-scala-benchmark-archetype/src/main/resources/archetype-resources/pom.xml	Thu Jul 24 22:24:16 2014 +0400
@@ -34,6 +34,7 @@
         <jmh.version>${project.version}</jmh.version>
         <jmh.generator>default</jmh.generator>  <!-- or "asm", or "reflection" -->
         <javac.target>1.6</javac.target>
+        <uberjar.name>benchmarks</uberjar.name>
     </properties>
 
     <build>
@@ -151,7 +152,7 @@
                             <goal>shade</goal>
                         </goals>
                         <configuration>
-                            <finalName>benchmarks</finalName>
+                            <finalName>\${uberjar.name}</finalName>
                             <transformers>
                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                     <mainClass>org.openjdk.jmh.Main</mainClass>
--- a/jmh-samples/pom.xml	Thu Jul 24 00:21:17 2014 +0400
+++ b/jmh-samples/pom.xml	Thu Jul 24 22:24:16 2014 +0400
@@ -63,6 +63,7 @@
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <uberjar.name>benchmarks</uberjar.name>
     </properties>
 
     <build>
@@ -97,7 +98,7 @@
                             <goal>shade</goal>
                         </goals>
                         <configuration>
-                            <finalName>benchmarks</finalName>
+                            <finalName>${uberjar.name}</finalName>
                             <transformers>
                                 <transformer
                                         implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">