From 1d6ed501937886f8a7e9d916e86e12898b9a9e41 Mon Sep 17 00:00:00 2001 From: Tue Ton <49886739+chirontt@users.noreply.github.com> Date: Sat, 23 Oct 2021 16:53:30 -0400 Subject: [PATCH] include LWJGL's manifest in the shaded uber jar so that the LWJGL's build number is shown properly in debug output of the shaded uber jar. --- pom.xml | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 59 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 3925ce5b..a89bd59e 100644 --- a/pom.xml +++ b/pom.xml @@ -172,6 +172,30 @@ maven-compiler-plugin ${maven-compiler-plugin.version} + + + maven-dependency-plugin + 3.2.0 + + + package + + unpack + + + + + org.lwjgl + lwjgl + ${lwjgl.version} + ${project.build.directory}/tmp + META-INF/MANIFEST.MF + + + + + + maven-shade-plugin ${maven-shade-plugin.version} @@ -194,9 +218,16 @@ + - org.lwjgl.demo.${class} + implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer"> + MANIFEST.MF + + + + META-INF/MANIFEST.MF + ${project.build.directory}/tmp/META-INF/MANIFEST.MF lwjgl3-demos @@ -204,6 +235,32 @@ + + maven-antrun-plugin + 3.0.0 + + + package + + run + + + + + + + + + + + + + + + + +