From 0dc3b8c4cce64af8775a4eb5ce13fbd3b1488670 Mon Sep 17 00:00:00 2001 From: FlorianMichael <60033407+FlorianMichael@users.noreply.github.com> Date: Sat, 20 Jan 2024 14:15:19 +0100 Subject: [PATCH] Updated publish script --- .github/workflows/build.yml | 6 +++--- .../classic4j/model/betacraft/BCVersionCategory.java | 2 ++ .../de/florianmichael/classic4j/util/model/Parameter.java | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index efee5ca..c8148ab 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: - name: Validate Gradle Wrapper uses: gradle/wrapper-validation-action@v1 - name: Set up JDK 17 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 17 @@ -32,7 +32,7 @@ jobs: - name: Build with Gradle run: ./gradlew build - name: Upload Artifacts to GitHub - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Artifacts - path: build/libs/ + path: build/libs/ \ No newline at end of file diff --git a/src/main/java/de/florianmichael/classic4j/model/betacraft/BCVersionCategory.java b/src/main/java/de/florianmichael/classic4j/model/betacraft/BCVersionCategory.java index cfe6928..04eee0c 100644 --- a/src/main/java/de/florianmichael/classic4j/model/betacraft/BCVersionCategory.java +++ b/src/main/java/de/florianmichael/classic4j/model/betacraft/BCVersionCategory.java @@ -23,6 +23,7 @@ * This enum represents the version of a BetaCraft server. It is used to determine the protocol version of the server. */ public enum BCVersionCategory { + @SerializedName("release") RELEASE, @SerializedName("classic") @@ -35,4 +36,5 @@ public enum BCVersionCategory { ALPHA, @SerializedName("beta") BETA + } diff --git a/src/main/java/de/florianmichael/classic4j/util/model/Parameter.java b/src/main/java/de/florianmichael/classic4j/util/model/Parameter.java index 4ab2760..557e6be 100644 --- a/src/main/java/de/florianmichael/classic4j/util/model/Parameter.java +++ b/src/main/java/de/florianmichael/classic4j/util/model/Parameter.java @@ -18,4 +18,5 @@ package de.florianmichael.classic4j.util.model; public record Parameter(String name, String value) { + }