From df9f235703c23b9ad0c8f9c3e2553bfa126981d4 Mon Sep 17 00:00:00 2001 From: phinner <62483793+phinner@users.noreply.github.com> Date: Mon, 3 Jun 2024 23:56:34 +0200 Subject: [PATCH] feat: Minor improvements --- .github/workflows/build.yml | 1 + build.gradle.kts | 9 ++++----- gradle/libs.versions.toml | 1 + plugin.json | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 562dcf5..7b1b68a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,6 +43,7 @@ jobs: with: name: "${{ github.event.repository.name }}-artifacts" path: build/tmp/release/*.jar + if-no-files-found: error - name: Determine Status run: | diff --git a/build.gradle.kts b/build.gradle.kts index 06d0d37..0e8d0e7 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,14 +10,13 @@ plugins { } val metadata = ModMetadata.fromJson(rootProject.file("plugin.json")) - group = "com.xpdustry" version = metadata.version description = metadata.description toxopid { - compileVersion.set("v${metadata.minGameVersion}") - platforms.set(setOf(ModPlatform.SERVER)) + compileVersion = "v${metadata.minGameVersion}" + platforms = setOf(ModPlatform.SERVER) } repositories { @@ -66,8 +65,8 @@ val generateResources by tasks.registering { } tasks.shadowJar { - archiveFileName.set("${metadata.name}.jar") - archiveClassifier.set("plugin") + archiveFileName = "${metadata.name}.jar" + archiveClassifier = "plugin" from(generateResources) from(rootProject.file("LICENSE.md")) { into("META-INF") } minimize() diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 2083d0d..a976898 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -2,6 +2,7 @@ version = "1.0" [versions] +# plugins shadow = "8.1.1" indra = "3.1.3" toxopid = "4.0.0" diff --git a/plugin.json b/plugin.json index 6d6d353..c32c013 100644 --- a/plugin.json +++ b/plugin.json @@ -3,7 +3,7 @@ "name": "template", "description": "A template plugin for Mindustry to get you started quickly.", "version": "5.0.0", - "author": "Xpdustry", + "author": "xpdustry", "repo": "xpdustry/template-plugin", "main": "com.xpdustry.template.TemplatePlugin", "minGameVersion": "146",