From 1a886a568d9151afed0f23e10e039a44dbf7cbc6 Mon Sep 17 00:00:00 2001 From: sillyangel Date: Sun, 15 Dec 2024 19:04:33 -0600 Subject: [PATCH] Update build configuration and increment mod version to 1.0.2 --- .github/workflows/build_jar.yml | 35 +++++++++++++++++++ .vscode/settings.json | 3 +- gradle.properties | 2 +- .../java/xyz/sillyangel/nugget/NuggetMod.java | 1 - 4 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/build_jar.yml diff --git a/.github/workflows/build_jar.yml b/.github/workflows/build_jar.yml new file mode 100644 index 0000000..4058f8f --- /dev/null +++ b/.github/workflows/build_jar.yml @@ -0,0 +1,35 @@ +name: Build and Upload JAR + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up JDK 21 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '21' + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build with Gradle + run: ./gradlew build + + - name: Upload build artifacts + uses: actions/upload-artifact@v3 + with: + name: build-artifact + path: build/libs/*.jar \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 7b016a8..d53ecaf 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,4 @@ { - "java.compile.nullAnalysis.mode": "automatic" + "java.compile.nullAnalysis.mode": "automatic", + "java.configuration.updateBuildConfiguration": "automatic" } \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 7b2829d..84c9a68 100644 --- a/gradle.properties +++ b/gradle.properties @@ -48,7 +48,7 @@ mod_name=Nugget Mod # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=MIT # The mod version. See https://semver.org/ -mod_version=1.0.1 +mod_version=1.0.2 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/java/xyz/sillyangel/nugget/NuggetMod.java b/src/main/java/xyz/sillyangel/nugget/NuggetMod.java index ba5c07d..822ef53 100644 --- a/src/main/java/xyz/sillyangel/nugget/NuggetMod.java +++ b/src/main/java/xyz/sillyangel/nugget/NuggetMod.java @@ -1,7 +1,6 @@ package xyz.sillyangel.nugget; import com.mojang.logging.LogUtils; -import net.minecraft.world.item.CreativeModeTabs; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.BuildCreativeModeTabContentsEvent;