Shade asm into Lib's Disguises for now, need to fetch remotely and save for 1.12

This commit is contained in:
libraryaddict 2020-02-20 00:18:52 +13:00
parent 6a6ba0c703
commit 51296f1cae
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4
2 changed files with 28 additions and 4 deletions

30
pom.xml
View File

@ -5,7 +5,7 @@
<!-- A good example on why temporary names for project identification shouldn't be used -->
<groupId>LibsDisguises</groupId>
<artifactId>LibsDisguises</artifactId>
<version>9.9.6</version>
<version>9.9.6-SNAPSHOT</version>
<build>
<defaultGoal>exec:java clean install</defaultGoal>
@ -50,6 +50,32 @@
<mainClass>me.libraryaddict.disguise.utilities.watchers.CompileMethods</mainClass>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.2</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<relocations>
<relocation>
<pattern>org.objectweb.asm</pattern>
<shadedPattern>me.libraryaddict.asm</shadedPattern>
</relocation>
</relocations>
<artifactSet>
<includes>
<include>org.ow2.asm:asm</include>
</includes>
</artifactSet>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
@ -69,13 +95,11 @@
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>7.3.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.10</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.comphenix.protocol</groupId>

View File

@ -1,6 +1,6 @@
package me.libraryaddict.disguise.utilities.reflection.asm;
import org.bukkit.craftbukkit.libs.org.objectweb.asm.*;
import org.objectweb.asm.*;
import java.io.IOException;
import java.lang.reflect.Field;