mirror of
https://github.com/GeyserMC/Floodgate.git
synced 2025-12-19 14:59:20 +00:00
Shade some dependencies
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
<artifactId>common</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<!-- following dependencies are relocated -->
|
||||
<dependency>
|
||||
<groupId>cloud.commandframework</groupId>
|
||||
<artifactId>cloud-bungee</artifactId>
|
||||
@@ -89,6 +90,18 @@
|
||||
<goals>
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<relocations>
|
||||
<relocation>
|
||||
<pattern>cloud.commandframework</pattern>
|
||||
<shadedPattern>org.geysermc.floodgate.shaded.cloud.commandframework</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>net.kyori</pattern>
|
||||
<shadedPattern>org.geysermc.floodgate.shaded.net.kyori</shadedPattern>
|
||||
</relocation>
|
||||
</relocations>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
<dependency>
|
||||
<groupId>net.kyori</groupId>
|
||||
<artifactId>adventure-api</artifactId>
|
||||
<version>4.1.1</version>
|
||||
<version>${adventure-api.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cloud.commandframework</groupId>
|
||||
|
||||
@@ -45,6 +45,14 @@
|
||||
<goals>
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<relocations>
|
||||
<relocation>
|
||||
<pattern>org.mariadb</pattern>
|
||||
<shadedPattern>org.geysermc.floodgate.shaded.org.mariadb</shadedPattern>
|
||||
</relocation>
|
||||
</relocations>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
|
||||
@@ -45,6 +45,14 @@
|
||||
<goals>
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<relocations>
|
||||
<relocation>
|
||||
<pattern>org.sqlite</pattern>
|
||||
<shadedPattern>org.geysermc.floodgate.shaded.org.sqlite</shadedPattern>
|
||||
</relocation>
|
||||
</relocations>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
|
||||
@@ -59,7 +59,7 @@ public class SqliteDatabase extends CommonPlayerLink {
|
||||
Path databasePath = dataDirectory.resolve("linked-players.db");
|
||||
try {
|
||||
Class.forName("org.sqlite.JDBC");
|
||||
connection = DriverManager.getConnection("jdbc:sqlite:" + databasePath.toString());
|
||||
connection = DriverManager.getConnection("jdbc:sqlite:" + databasePath);
|
||||
try (Statement statement = connection.createStatement()) {
|
||||
statement.executeUpdate(
|
||||
"create table if not exists LinkedPlayers (bedrockId string, javaUniqueId string, javaUsername string)"
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
<artifactId>common</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<!-- the following dependencies are (also) relocated -->
|
||||
<dependency>
|
||||
<groupId>cloud.commandframework</groupId>
|
||||
<artifactId>cloud-bukkit</artifactId>
|
||||
@@ -111,6 +112,14 @@
|
||||
</goals>
|
||||
<configuration>
|
||||
<relocations>
|
||||
<relocation>
|
||||
<pattern>cloud.commandframework</pattern>
|
||||
<shadedPattern>org.geysermc.floodgate.shaded.cloud.commandframework</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>net.kyori</pattern>
|
||||
<shadedPattern>org.geysermc.floodgate.shaded.net.kyori</shadedPattern>
|
||||
</relocation>
|
||||
<!-- hack to make pre 1.12 work -->
|
||||
<relocation>
|
||||
<pattern>com.google.common</pattern>
|
||||
|
||||
@@ -52,6 +52,12 @@
|
||||
<version>${cloud.version}</version>
|
||||
</dependency>
|
||||
<!-- the following common dependencies are already present on the platform -->
|
||||
<dependency>
|
||||
<groupId>net.kyori</groupId>
|
||||
<artifactId>adventure-api</artifactId>
|
||||
<version>${adventure-api.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.code.gson</groupId>
|
||||
<artifactId>gson</artifactId>
|
||||
@@ -107,6 +113,14 @@
|
||||
<goals>
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<relocations>
|
||||
<relocation>
|
||||
<pattern>cloud.commandframework</pattern>
|
||||
<shadedPattern>org.geysermc.floodgate.shaded.cloud.commandframework</shadedPattern>
|
||||
</relocation>
|
||||
</relocations>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
|
||||
Reference in New Issue
Block a user