98 lines
5.3 KiB
Diff
98 lines
5.3 KiB
Diff
From 112daf42699caa2e878d4c3f6509fc0dccf7975d Mon Sep 17 00:00:00 2001
|
|
From: Marian Koncek <mkoncek@redhat.com>
|
|
Date: Tue, 9 Nov 2021 11:55:22 +0100
|
|
Subject: [PATCH 1/4] Avoid bundling asm
|
|
|
|
---
|
|
byte-buddy/pom.xml | 53 +++++++++-------------------------------------
|
|
1 file changed, 10 insertions(+), 43 deletions(-)
|
|
|
|
diff --git a/byte-buddy/pom.xml b/byte-buddy/pom.xml
|
|
index c0cec10..6b5494d 100644
|
|
--- a/byte-buddy/pom.xml
|
|
+++ b/byte-buddy/pom.xml
|
|
@@ -26,8 +26,6 @@
|
|
-->
|
|
|
|
<properties>
|
|
- <shade.source>org.objectweb.asm</shade.source>
|
|
- <shade.target>net.bytebuddy.jar.asm</shade.target>
|
|
<packages.list.external>
|
|
net.bytebuddy,
|
|
net.bytebuddy.agent.builder,
|
|
@@ -63,9 +61,6 @@
|
|
net.bytebuddy.utility.nullability,
|
|
net.bytebuddy.utility.privilege,
|
|
net.bytebuddy.utility.visitor,
|
|
- ${shade.target},
|
|
- ${shade.target}.signature,
|
|
- ${shade.target}.commons
|
|
</packages.list.external>
|
|
<packages.list.internal>
|
|
net.bytebuddy.utility.dispatcher
|
|
@@ -166,6 +161,16 @@
|
|
<artifactId>asm</artifactId>
|
|
<version>${version.asm}</version>
|
|
</dependency>
|
|
+ <dependency>
|
|
+ <groupId>org.ow2.asm</groupId>
|
|
+ <artifactId>asm</artifactId>
|
|
+ <version>${version.asm}</version>
|
|
+ </dependency>
|
|
+ <dependency>
|
|
+ <groupId>org.ow2.asm</groupId>
|
|
+ <artifactId>asm-commons</artifactId>
|
|
+ <version>${version.asm}</version>
|
|
+ </dependency>
|
|
</dependencies>
|
|
<executions>
|
|
<execution>
|
|
@@ -249,44 +254,6 @@
|
|
<createDependencyReducedPom>true</createDependencyReducedPom>
|
|
<createSourcesJar>${bytebuddy.extras}</createSourcesJar>
|
|
<shadeSourcesContent>true</shadeSourcesContent>
|
|
- <relocations>
|
|
- <relocation>
|
|
- <pattern>${shade.source}</pattern>
|
|
- <shadedPattern>${shade.target}</shadedPattern>
|
|
- </relocation>
|
|
- </relocations>
|
|
- <filters>
|
|
- <filter>
|
|
- <artifact>net.bytebuddy:byte-buddy-dep:*</artifact>
|
|
- <excludes>
|
|
- <exclude>META-INF/MANIFEST.MF</exclude>
|
|
- </excludes>
|
|
- </filter>
|
|
- <filter>
|
|
- <artifact>org.ow2.asm:*</artifact>
|
|
- <excludes>
|
|
- <exclude>META-INF/MANIFEST.MF</exclude>
|
|
- <exclude>**/module-info.class</exclude>
|
|
- <exclude>**/LICENSE</exclude>
|
|
- <exclude>**/NOTICE</exclude>
|
|
- </excludes>
|
|
- </filter>
|
|
- <filter>
|
|
- <artifact>org.ow2.asm:asm-commons</artifact>
|
|
- <includes>
|
|
- <include>org/objectweb/asm/commons/AnnotationRemapper.**</include>
|
|
- <include>org/objectweb/asm/commons/ClassRemapper.**</include>
|
|
- <include>org/objectweb/asm/commons/FieldRemapper.**</include>
|
|
- <include>org/objectweb/asm/commons/MethodRemapper.**</include>
|
|
- <include>org/objectweb/asm/commons/ModuleHashesAttribute.**</include>
|
|
- <include>org/objectweb/asm/commons/ModuleRemapper.**</include>
|
|
- <include>org/objectweb/asm/commons/RecordComponentRemapper.**</include>
|
|
- <include>org/objectweb/asm/commons/Remapper.**</include>
|
|
- <include>org/objectweb/asm/commons/SignatureRemapper.**</include>
|
|
- <include>org/objectweb/asm/commons/SimpleRemapper.**</include>
|
|
- </includes>
|
|
- </filter>
|
|
- </filters>
|
|
<transformers>
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
<mainClass>net.bytebuddy.build.Plugin$Engine$Default</mainClass>
|
|
--
|
|
2.35.1
|
|
|