Reduce jar size by removing unneeded dependencies

This commit is contained in:
Govindass 2020-10-22 17:28:00 +03:00
parent 4afd5a2dbc
commit 97aa663bfd
2 changed files with 12 additions and 20 deletions

30
pom.xml
View File

@ -6,7 +6,7 @@
<groupId>net.limework.core</groupId> <groupId>net.limework.core</groupId>
<artifactId>RediSkript</artifactId> <artifactId>RediSkript</artifactId>
<version>1.1.0</version> <version>1.1.2</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<build> <build>
@ -63,13 +63,10 @@
<id>jitpack.io</id> <id>jitpack.io</id>
<url>https://jitpack.io</url> <url>https://jitpack.io</url>
</repository> </repository>
<repository> <repository>
<id>PaperMC</id> <id>commons-pool2</id>
<url>https://repo.destroystokyo.com/repository/maven-public/</url> <url>https://mvnrepository.com/artifact/org.apache.commons/commons-pool2</url>
</repository>
<repository>
<id>sk89q</id>
<url>http://maven.sk89q.com/repo</url>
</repository> </repository>
</repositories> </repositories>
@ -86,11 +83,6 @@
<version>1.16.2-R0.1-SNAPSHOT</version> <version>1.16.2-R0.1-SNAPSHOT</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.6</version>
</dependency>
<dependency> <dependency>
<groupId>redis.clients</groupId> <groupId>redis.clients</groupId>
<artifactId>jedis</artifactId> <artifactId>jedis</artifactId>
@ -106,11 +98,11 @@
<artifactId>siv-mode</artifactId> <artifactId>siv-mode</artifactId>
<version>1.4.0</version> <version>1.4.0</version>
</dependency> </dependency>
<dependency> <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-pool2 -->
<groupId>org.jetbrains</groupId> <dependency>
<artifactId>annotations</artifactId> <groupId>org.apache.commons</groupId>
<version>19.0.0</version> <artifactId>commons-pool2</artifactId>
<scope>compile</scope> <version>2.6.2</version>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -146,7 +146,7 @@ public class RedisManager extends BinaryJedisPubSub implements Runnable, Command
} }
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
Bukkit.getLogger().warning(ChatColor.translateAlternateColorCodes('&', "&2[&aRedisk&a] &cI got a message that was empty from channel " + channelString + " please check your code that you used to send the message. ^ ignore the error.")); Bukkit.getLogger().warning(ChatColor.translateAlternateColorCodes('&', "&2[&aRediSkript&a] &cI got a message that was empty from channel " + channelString + " please check your code that you used to send the message. ^ ignore the error."));
} }
} }