Skip to content

Commit

Permalink
feat: Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
phinner committed Jun 3, 2024
1 parent b38bf7f commit df9f235
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
9 changes: 4 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
version = "1.0"

[versions]
# plugins
shadow = "8.1.1"
indra = "3.1.3"
toxopid = "4.0.0"
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit df9f235

Please sign in to comment.