Remove universal jar building for a smaller jar footprint and less conflicts with provided dependencies

This commit is contained in:
games647 committed 2018-02-24 20:43:18 +01:00
1 parent 526a8a9d51
commit 2bdd051a41
7 files changed
+92 -94

No files matched your search

+7 -1
View File
@@ -28,7 +28,7 @@
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>2.7.6</version>
<version>2.7.7</version>
</dependency>
<!--Logging framework implements slf4j which is required by hikari-->
@@ -50,6 +50,12 @@
<groupId>net.md-5</groupId>
<artifactId>bungeecord-config</artifactId>
<version>1.12-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- APIs we can use because they are available in all platforms (Spigot, Bungee, Cauldron) -->
@@ -2,6 +2,7 @@ package com.github.games647.fastlogin.core.mojang;
import com.github.games647.fastlogin.core.CommonUtil;
import com.google.gson.TypeAdapter;
import com.google.gson.internal.bind.TypeAdapters;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
@@ -11,10 +12,10 @@ import java.util.UUID;
public class UUIDTypeAdapter extends TypeAdapter<UUID> {
public void write(JsonWriter out, UUID value) throws IOException {
out.value(CommonUtil.toMojangId(value));
TypeAdapters.STRING.write(out, CommonUtil.toMojangId(value));
}
public UUID read(JsonReader in) throws IOException {
return CommonUtil.parseId(in.nextString());
return CommonUtil.parseId(TypeAdapters.STRING.read(in));
}
}