From 92220cc5e6a5c98257bae0edfdcc3900dffbd4ef Mon Sep 17 00:00:00 2001 From: KrLite <68179735+KrLite@users.noreply.github.com> Date: Thu, 18 Jul 2024 06:36:54 +0800 Subject: [PATCH] Update build.gradle.kts --- build.gradle.kts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 15cbb86..d380b77 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,13 +7,11 @@ plugins { alias(libs.plugins.modpublisher) } +val display = libs.versions.display + group = libs.versions.maven.group.get() version = "${libs.versions.mod.get()}-${libs.versions.loader.get()}${libs.versions.minecraft.get()}" -display.name = libs.versions.display.name.get() -display.loader = libs.versions.display.loader.get() -display.version = libs.versions.display.version.get() - base { archivesName.set(libs.versions.archives.name) }