Skip to content

Commit 93927df

Browse files
authored
Integrate GSON incompatibility fix
fix: Downgrade GSON
2 parents a9856e4 + 43b1ae2 commit 93927df

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repositories {
1111
}
1212

1313
dependencies {
14-
implementation("com.intellectualsites.paster:Paster:1.1.3")
14+
implementation("com.intellectualsites.paster:Paster:1.1.4")
1515
}
1616
```
1717
You need to shade Paster into your software by either using maven shade or gradle shadow.

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ configurations.all {
2727
}
2828

2929
group = "com.intellectualsites.paster"
30-
version = "1.1.4-SNAPSHOT"
30+
version = "1.1.4"
3131

3232
repositories {
3333
mavenCentral()

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
# Minecraft expectations
3-
gson = "2.8.8" # Version set by Minecraft
4-
guava = "31.0.1-jre" # Version set by Minecraft
3+
gson = "2.8.0" # Version set by Minecraft 1.15.2
4+
guava = "21.0" # Version set by Minecraft
55

66
# Annotations
77
findbugs = "3.0.2"

src/main/java/com/intellectualsites/paster/IncendoPaster.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
import java.util.Locale;
5252
import java.util.concurrent.TimeUnit;
5353

54+
@SuppressWarnings("unused")
5455
public class IncendoPaster {
5556

5657
/**
@@ -156,7 +157,7 @@ public static String debugPaste(@Nonnull File logFile, @Nullable String debugInf
156157
} catch (Throwable throwable) {
157158
throw new IOException(String.format("Failed to upload files: %s", throwable.getMessage()), throwable);
158159
}
159-
final JsonObject jsonObject = JsonParser.parseString(rawResponse).getAsJsonObject();
160+
final JsonObject jsonObject = new JsonParser().parse(rawResponse).getAsJsonObject();
160161

161162
if (jsonObject.has("created")) {
162163
final String pasteId = jsonObject.get("paste_id").getAsString();

0 commit comments

Comments
 (0)