···1212 matrix:
1313 # Use these Java versions
1414 java: [
1515- 21, # Current Java LTS & minimum supported by Minecraft
1515+ 21, # Current Java LTS
1616 ]
1717- # and run on both Linux and Windows
1818- os: [ubuntu-22.04, windows-2022]
1919- runs-on: ${{ matrix.os }}
1717+ runs-on: ubuntu-22.04
2018 steps:
2119 - name: checkout repository
2222- uses: actions/checkout@v3
2020+ uses: actions/checkout@v4
2321 - name: validate gradle wrapper
2424- uses: gradle/wrapper-validation-action@v1
2222+ uses: gradle/wrapper-validation-action@v2
2523 - name: setup jdk ${{ matrix.java }}
2626- uses: actions/setup-java@v3
2424+ uses: actions/setup-java@v4
2725 with:
2826 java-version: ${{ matrix.java }}
2927 distribution: 'microsoft'
3028 - name: make gradle wrapper executable
3131- if: ${{ runner.os != 'Windows' }}
3229 run: chmod +x ./gradlew
3330 - name: build
3431 run: ./gradlew build
3532 - name: capture build artifacts
3636- if: ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from latest java on one OS
3737- uses: actions/upload-artifact@v3
3333+ if: ${{ matrix.java == '21' }} # Only upload artifacts built from latest java
3434+ uses: actions/upload-artifact@v4
3835 with:
3939- name: armorhud-mod
4040- path: build/libs/*.jar
3636+ name: Armorhud
3737+ path: build/libs/
+11-2
build.gradle
···11plugins {
22- id 'fabric-loom' version '1.6-SNAPSHOT'
22+ id 'fabric-loom' version '1.9-SNAPSHOT'
33 id 'maven-publish'
4455}
···1717 // Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
1818 // See https://docs.gradle.org/current/userguide/declaring_repositories.html
1919 // for more information about repositories.
2020- maven { url = "https://maven.terraformersmc.com/" }
2120// maven { url = "https://maven.gegy.dev" }
2121+ maven {
2222+ name = "TerraformersMC"
2323+ url = "https://maven.terraformersmc.com/"
2424+ }
2525+ maven {
2626+ name = "Ladysnake Libs"
2727+ url = 'https://maven.ladysnake.org/releases'
2828+ }
2229}
23302431loom {
···4855 // These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.
49565057 // modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
5858+5959+ modImplementation "dev.emi:trinkets:${project.trinkets_version}"
5160}
52615362processResources {
+7-6
gradle.properties
···4455# Fabric Properties
66# check these on https://fabricmc.net/develop
77-minecraft_version=1.21
88-yarn_mappings=1.21+build.2
99-loader_version=0.15.11
77+minecraft_version=1.21.4
88+yarn_mappings=1.21.4+build.1
99+loader_version=0.16.9
10101111# Mod Properties
1212-mod_version=1.4.5
1212+mod_version=1.5.1
1313maven_group=com.armorhud
1414archives_base_name=simple-armor-hud
15151616# Dependency properties
1717-fabric_version=0.100.3+1.21
1818-modmenu_version=11.0.1
1717+fabric_version=0.110.5+1.21.4
1818+modmenu_version=13.0.0-beta.1
1919+trinkets_version=3.10.0