From c0866f9a3cc88b3836767787cf14cb614105b786 Mon Sep 17 00:00:00 2001 From: KrLite <68179735+KrLite@users.noreply.github.com> Date: Thu, 18 Jul 2024 07:33:36 +0800 Subject: [PATCH] 2.1.1 --- CHANGELOG.md | 2 +- build.gradle.kts | 18 ++++-------------- gradle/libs.versions.toml | 2 +- src/main/resources/fabric.mod.json | 2 +- 4 files changed, 7 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24f532a..653c664 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,3 @@ ### Maintenance Update -- **Supported** `1.20.5+`. \ No newline at end of file +- **Use** fully semantic versioning. diff --git a/build.gradle.kts b/build.gradle.kts index 9589fef..8de25c1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,11 +1,3 @@ -class Display { - lateinit var name: String - lateinit var loader: String - lateinit var version: String -} - -var display: Display = Display() - plugins { base java @@ -15,12 +7,10 @@ plugins { alias(libs.plugins.modpublisher) } -group = libs.versions.maven.group.get() -version = "${libs.versions.mod.get()}-${libs.versions.loader.get()}${libs.versions.minecraft.get()}" +val display = libs.versions.display -display.name = libs.versions.display.name.get() -display.loader = libs.versions.display.loader.get() -display.version = libs.versions.display.version.get() +group = libs.versions.maven.group.get() +version = "${libs.versions.mod.get()}-${libs.versions.loader.get()}.${libs.versions.minecraft.get()}" base { archivesName.set(libs.versions.archives.name) @@ -86,7 +76,7 @@ publisher { curseDepends.optional() curseDepends.embedded() - displayName.set("${display.name} ${libs.versions.mod.get()} for ${display.loader} ${display.version}") + displayName.set("${display.name.get()} ${libs.versions.mod.get()} for ${display.loader.get()} ${display.version.get()}") artifact.set(tasks.remapJar) addAdditionalFile(tasks.remapSourcesJar) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 12c8fd1..92fe5de 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,7 +1,7 @@ [versions] maven-group = "band.kessokuteatime" archives-name = "flash" -mod = "2.1.0" +mod = "2.1.1" loader = "fabric" minecraft = "1.21" diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index d446d6f..bdc5929 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -3,7 +3,7 @@ "id": "flash", "version": "${version}", - "name": "${display.name}", + "name": "${display.name.get()}", "description": "Flashes as you take a screenshot.", "authors": [ "KessokuTeaTime",