This is an automated email from the ASF dual-hosted git repository.

pkarwasz pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/2.x by this push:
     new a734365249 Make benchmark JAR executable again
a734365249 is described below

commit a7343652494265d2ad4ae918ecea674c5d1595ce
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Mon Dec 30 17:03:26 2024 +0100

    Make benchmark JAR executable again
---
 log4j-perf-test/pom.xml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/log4j-perf-test/pom.xml b/log4j-perf-test/pom.xml
index 8b47178c9d..f16edfad09 100644
--- a/log4j-perf-test/pom.xml
+++ b/log4j-perf-test/pom.xml
@@ -196,6 +196,21 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-shade-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>generate-uber-jar</id>
+            <configuration>
+              <transformers combine.children="append">
+                <transformer 
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
+                  <manifestEntries>
+                    <Main-Class>org.openjdk.jmh.Main</Main-Class>
+                    <Multi-Release>true</Multi-Release>
+                  </manifestEntries>
+                </transformer>
+              </transformers>
+            </configuration>
+          </execution>
+        </executions>
       </plugin>
 
     </plugins>

Reply via email to