Update JDA for Java 16 and Pterodactyl integration compatibility

This commit is contained in:
Telesphoreo 2021-06-21 19:40:16 -05:00
parent 54194a7f7e
commit 2c21d8a49f
2 changed files with 33 additions and 11 deletions

40
pom.xml
View File

@ -20,32 +20,38 @@
<id>spigot-repo</id> <id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url> <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository> </repository>
<repository> <repository>
<id>dv8tion</id> <id>dv8tion</id>
<name>m2-dv8tion</name> <name>m2-dv8tion</name>
<url>https://m2.dv8tion.net/releases/</url> <url>https://m2.dv8tion.net/releases/</url>
</repository> </repository>
<repository>
<id>apache-snapshots</id>
<url>https://repository.apache.org/content/repositories/snapshots/</url>
</repository>
</repositories> </repositories>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>net.dv8tion</groupId> <groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId> <artifactId>JDA</artifactId>
<version>4.2.1_255</version> <version>4.3.0_277</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.spigotmc</groupId> <groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId> <artifactId>spigot-api</artifactId>
<version>1.16.5-R0.1-SNAPSHOT</version> <version>1.17-R0.1-SNAPSHOT</version>
<scope>compile</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.neovisionaries</groupId> <groupId>com.neovisionaries</groupId>
<artifactId>nv-websocket-client</artifactId> <artifactId>nv-websocket-client</artifactId>
<version>2.10</version> <version>2.14</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
@ -56,12 +62,28 @@
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<!-- Required for both JDA and Pterodactyl integration -->
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20210307</version>
<scope>compile</scope>
</dependency>
<dependency> <dependency>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId> <artifactId>slf4j-api</artifactId>
<version>1.7.30</version> <version>1.7.31</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!-- This should only be temporary. The stable release does not yet support Java 16.
This should be removed when a stable version comes out that supports Java 16 -->
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.3.0-SNAPSHOT</version>
</dependency>
</dependencies> </dependencies>
<organization> <organization>
@ -76,14 +98,14 @@
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version> <version>3.8.1</version>
<configuration> <configuration>
<source>1.8</source> <source>16</source>
<target>1.8</target> <target>16</target>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId> <artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version> <version>3.3.0-SNAPSHOT</version>
<executions> <executions>
<execution> <execution>
<phase>package</phase> <phase>package</phase>

View File

@ -1,4 +1,4 @@
name: JDA name: JDA
version: 4.2.0_222 version: 4.3.0_277
author: scripthead author: StevenNL2000
main: me.totalfreedom.jda.JDA main: me.totalfreedom.jda.JDA