377 lines
15 KiB
XML
377 lines
15 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>com.cheatbreaker</groupId>
|
|
<artifactId>CheatBreaker</artifactId>
|
|
<version>Production</version>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.0</version>
|
|
<configuration>
|
|
<source>8</source>
|
|
<target>8</target>
|
|
<excludes>
|
|
<exclude>**/Start.java</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>3.2.4</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>pl.project13.maven</groupId>
|
|
<artifactId>git-commit-id-plugin</artifactId>
|
|
<version>2.2.4</version>
|
|
<executions>
|
|
<execution>
|
|
<id>get-the-git-infos</id>
|
|
<goals>
|
|
<goal>revision</goal>
|
|
</goals>
|
|
<phase>initialize</phase>
|
|
</execution>
|
|
<execution>
|
|
<id>validate-the-git-infos</id>
|
|
<goals>
|
|
<goal>validateRevision</goal>
|
|
</goals>
|
|
<phase>package</phase>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<generateGitPropertiesFile>true</generateGitPropertiesFile>
|
|
<generateGitPropertiesFilename>${project.build.outputDirectory}/assets/minecraft/client/properties/app.properties</generateGitPropertiesFilename>
|
|
<includeOnlyProperties>
|
|
<includeOnlyProperty>^git.commit.(id.abbrev|id)$</includeOnlyProperty>
|
|
<includeOnlyProperty>^git.(branch$|build.version$)</includeOnlyProperty>
|
|
</includeOnlyProperties>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<executions>
|
|
<execution>
|
|
<id>Jar Transformer</id>
|
|
<phase>package</phase>
|
|
<goals><goal>exec</goal></goals>
|
|
<configuration>
|
|
<workingDirectory>${basedir}\target</workingDirectory>
|
|
<executable>java</executable>
|
|
<arguments>
|
|
<argument>-jar</argument>
|
|
<argument>${basedir}\obf\Transformer.jar</argument>
|
|
<argument>obf</argument>
|
|
<argument>--input</argument>
|
|
<argument>${project.build.finalName}.jar</argument>
|
|
<argument>--output</argument>
|
|
<argument>${project.build.finalName}-T.jar</argument>
|
|
</arguments>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>ProGuard Mapping Dictionary</id>
|
|
<phase>package</phase>
|
|
<goals><goal>exec</goal></goals>
|
|
<configuration>
|
|
<workingDirectory>${basedir}\target</workingDirectory>
|
|
<executable>java</executable>
|
|
<arguments>
|
|
<argument>-jar</argument>
|
|
<argument>${basedir}\obf\Mappings.jar</argument>
|
|
</arguments>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.github.wvengen</groupId>
|
|
<artifactId>proguard-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals><goal>proguard</goal></goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<obfuscate>true</obfuscate>
|
|
<injar>${project.build.finalName}-T.jar</injar>
|
|
<outjar>${project.build.finalName}.jar</outjar>
|
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
<proguardInclude>${basedir}/proguard.conf</proguardInclude>
|
|
<options>
|
|
<option>-dontnote</option> <!-- Ignore all the notes ProGuard sends -->
|
|
<option>-dontwarn</option> <!-- Ignore com.sun missing classes -->
|
|
<option>-keepattributes Signature</option>
|
|
<option>-keep public class com.cheatbreaker.client.network.messages.Message { *; }</option> <!-- Used so the Agent (In future purposes) Library can read this class and alphabetical methods. -->
|
|
<option>-keep public class net.minecraft.client.main.Main { public static void main(java.lang.String[]); }</option> <!-- Ensure the Main class and main method can be detected by the json. -->
|
|
<option>-keep public class com.jagrosh.discordipc.**</option> <!-- Used to prevent ProGuard optimizer from deleting actual used init methods. -->
|
|
<option>-keepclassmembers class net.** { <init>(...); }</option> <!-- Used to prevent ProGuard optimizer from deleting actual used init methods. -->
|
|
<option>-keepclassmembers class * extends java.lang.Enum { public static **[] values(); }</option> <!-- Ensures the client can actually read the enum classes properly -->
|
|
<option>-repackageclasses</option> <!-- Move all affected classes to the root directory of the jar -->
|
|
<option>-classobfuscationdictionary target/OBF.csv</option>
|
|
<option>-obfuscationdictionary target/OBF.csv</option>
|
|
</options>
|
|
<libs>
|
|
<lib>${java.home}/lib/rt.jar</lib>
|
|
<lib>${java.home}/lib/jsse.jar</lib>
|
|
</libs>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>minecraft-repo</id>
|
|
<url>https://libraries.minecraft.net/</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.googlecode.soundlibs</groupId>
|
|
<artifactId>jlayer</artifactId>
|
|
<version>1.0.1-1</version>
|
|
</dependency> <!--What may CB used-->
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<version>1.18.12</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.java-websocket</groupId>
|
|
<artifactId>Java-WebSocket</artifactId>
|
|
<version>1.4.1</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.sf.trove4j</groupId>
|
|
<artifactId>trove4j</artifactId>
|
|
<version>3.0.1</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>oshi-project</groupId>
|
|
<artifactId>oshi-core</artifactId>
|
|
<version>1.1</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.json</groupId>
|
|
<artifactId>json</artifactId>
|
|
<version>20211205</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.java.dev.jna</groupId>
|
|
<artifactId>jna</artifactId>
|
|
<version>3.4.0</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.java.dev.jna</groupId>
|
|
<artifactId>platform</artifactId>
|
|
<version>3.4.0</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.ibm.icu</groupId>
|
|
<artifactId>icu4j</artifactId>
|
|
<version>51.2</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.sf.jopt-simple</groupId>
|
|
<artifactId>jopt-simple</artifactId>
|
|
<version>4.6</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.paulscode</groupId>
|
|
<artifactId>codecjorbis</artifactId>
|
|
<version>20101023</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.paulscode</groupId>
|
|
<artifactId>codecwav</artifactId>
|
|
<version>20101023</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.paulscode</groupId>
|
|
<artifactId>libraryjavasound</artifactId>
|
|
<version>20101123</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.paulscode</groupId>
|
|
<artifactId>librarylwjglopenal</artifactId>
|
|
<version>20100824</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.paulscode</groupId>
|
|
<artifactId>soundsystem</artifactId>
|
|
<version>20120107</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.netty</groupId>
|
|
<artifactId>netty-all</artifactId>
|
|
<version>4.0.10.Final</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
<version>17.0</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-lang3</artifactId>
|
|
<version>3.3.2</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-io</groupId>
|
|
<artifactId>commons-io</artifactId>
|
|
<version>2.4</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-codec</groupId>
|
|
<artifactId>commons-codec</artifactId>
|
|
<version>1.9</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.java.jinput</groupId>
|
|
<artifactId>jinput</artifactId>
|
|
<version>2.0.5</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.java.jutils</groupId>
|
|
<artifactId>jutils</artifactId>
|
|
<version>1.0.0</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.code.gson</groupId>
|
|
<artifactId>gson</artifactId>
|
|
<version>2.2.4</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-compress</artifactId>
|
|
<version>1.8.1</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
<artifactId>httpclient</artifactId>
|
|
<version>4.3.3</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-logging</groupId>
|
|
<artifactId>commons-logging</artifactId>
|
|
<version>1.1.3</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
<artifactId>httpcore</artifactId>
|
|
<version>4.3.2</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-api</artifactId>
|
|
<version>2.0-beta9</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-core</artifactId>
|
|
<version>2.0-beta9</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.lwjgl.lwjgl</groupId>
|
|
<artifactId>lwjgl</artifactId>
|
|
<version>2.9.4-nightly-20150209</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.lwjgl.lwjgl</groupId>
|
|
<artifactId>lwjgl_util</artifactId>
|
|
<version>2.9.4-nightly-20150209</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.mojang</groupId>
|
|
<artifactId>realms</artifactId>
|
|
<version>1.3.5</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.mojang</groupId>
|
|
<artifactId>authlib</artifactId>
|
|
<version>1.5.21</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>tv.twitch</groupId>
|
|
<artifactId>twitch</artifactId>
|
|
<version>5.16</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.vecmath</groupId>
|
|
<artifactId>vecmath</artifactId>
|
|
<version>1.5.2</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.jagrosh</groupId>
|
|
<artifactId>DiscordIPC</artifactId>
|
|
<version>0.4</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.wvengen</groupId>
|
|
<artifactId>proguard-maven-plugin</artifactId>
|
|
<version>2.5.2</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.cheatbreaker.bridge</groupId>
|
|
<artifactId>Bridge</artifactId>
|
|
<version>1.0.0</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</project> |