From 3867ee5592bada244332ebc9fe469e806b0d5a5e Mon Sep 17 00:00:00 2001 From: nea Date: Fri, 31 Mar 2023 18:09:52 +0200 Subject: Bump version and add case insensitive github tags --- build.gradle.kts | 11 +---------- src/main/java/moe/nea/libautoupdate/CurrentVersion.java | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 81439f9..e1f10e8 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,7 +7,7 @@ plugins { } group = "moe.nea" -version = "1.0.2" +version = "1.0.3" allprojects { apply(plugin = "java") @@ -73,13 +73,4 @@ publishing { } } } - repositories { - maven("https://repo.nea.moe/releases") { - name = "neamoeReleases" - credentials(PasswordCredentials::class) - authentication { - create("basic") - } - } - } } diff --git a/src/main/java/moe/nea/libautoupdate/CurrentVersion.java b/src/main/java/moe/nea/libautoupdate/CurrentVersion.java index e6e4ff8..eb8fc8a 100644 --- a/src/main/java/moe/nea/libautoupdate/CurrentVersion.java +++ b/src/main/java/moe/nea/libautoupdate/CurrentVersion.java @@ -49,7 +49,7 @@ public interface CurrentVersion { @Override public boolean isOlderThan(JsonElement element) { - return !new JsonPrimitive(tagName).equals(element); + return !element.isJsonPrimitive() || !element.getAsString().equalsIgnoreCase(tagName); } @Override -- cgit