https://modrinth.com/mod/breakfree

chore: update all the build stuff

+51 -39
+30
.github/workflows/build.yml
··· 1 + # Automatically build the project and run any configured tests for every push 2 + # and submitted pull request. This can help catch issues that only occur on 3 + # certain platforms or Java versions, and provides a first line of defence 4 + # against bad commits. 5 + 6 + name: build 7 + on: [pull_request, push] 8 + 9 + jobs: 10 + build: 11 + runs-on: ubuntu-24.04 12 + steps: 13 + - name: checkout repository 14 + uses: actions/checkout@v4 15 + - name: validate gradle wrapper 16 + uses: gradle/actions/wrapper-validation@v4 17 + - name: setup jdk 18 + uses: actions/setup-java@v4 19 + with: 20 + java-version: '21' 21 + distribution: 'microsoft' 22 + - name: make gradle wrapper executable 23 + run: chmod +x ./gradlew 24 + - name: build 25 + run: ./gradlew build 26 + - name: capture build artifacts 27 + uses: actions/upload-artifact@v4 28 + with: 29 + name: Artifacts 30 + path: build/libs/
+7 -26
build.gradle
··· 1 1 plugins { 2 - id 'fabric-loom' version '1.6-SNAPSHOT' 2 + id 'fabric-loom' version "${loom_version}" 3 3 id 'maven-publish' 4 4 } 5 5 ··· 10 10 archivesName = project.archives_base_name 11 11 } 12 12 13 - repositories { 14 - // Add repositories to retrieve artifacts from in here. 15 - // You should only use this when depending on other mods because 16 - // Loom adds the essential maven repositories to download Minecraft and libraries from automatically. 17 - // See https://docs.gradle.org/current/userguide/declaring_repositories.html 18 - // for more information about repositories. 19 - } 20 - 21 - loom { 22 - splitEnvironmentSourceSets() 23 - 24 - mods { 25 - "breakfree" { 26 - sourceSet sourceSets.main 27 - sourceSet sourceSets.client 28 - } 29 - } 30 - } 31 - 32 13 dependencies { 33 14 // To change the versions see the gradle.properties file 34 15 minecraft "com.mojang:minecraft:${project.minecraft_version}" 35 16 mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" 36 17 modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" 37 - 38 - // Fabric API. This is technically optional, but you probably want it anyway. 39 - //modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" 40 18 } 41 19 42 20 processResources { 43 21 inputs.property "version", project.version 22 + inputs.property "minecraft_version", project.minecraft_version 44 23 45 24 filesMatching("fabric.mod.json") { 46 - expand "version": project.version 25 + expand "version": inputs.properties.version, "minecraft_version": inputs.properties.minecraft_version 47 26 } 48 27 } 49 28 ··· 62 41 } 63 42 64 43 jar { 44 + inputs.property "archivesName", project.base.archivesName 45 + 65 46 from("LICENSE") { 66 - rename { "${it}_${project.archivesBaseName}"} 47 + rename { "${it}_${inputs.properties.archivesName}"} 67 48 } 68 49 } 69 50 ··· 83 64 // The repositories here will be used for publishing your artifact, not for 84 65 // retrieving dependencies. 85 66 } 86 - } 67 + }
+5 -8
gradle.properties
··· 4 4 5 5 # Fabric Properties 6 6 # check these on https://fabricmc.net/versions.html 7 - minecraft_version=1.21 8 - yarn_mappings=1.21+build.1 9 - loader_version=0.15.11 7 + minecraft_version=1.21.6 8 + yarn_mappings=1.21.6+build.1 9 + loader_version=0.16.14 10 + loom_version=1.10-SNAPSHOT 10 11 11 12 # Mod Properties 12 - mod_version=1.3.0 13 + mod_version=1.3.0+1.21.6 13 14 maven_group=io.github.justapotota 14 15 archives_base_name=breakfree 15 - 16 - # Dependencies 17 - # check this on https://fabricmc.net/versions.html 18 - fabric_version=0.100.1+1.21
gradle/wrapper/gradle-wrapper.jar

This is a binary file and will not be displayed.

+1 -1
gradle/wrapper/gradle-wrapper.properties
··· 1 1 distributionBase=GRADLE_USER_HOME 2 2 distributionPath=wrapper/dists 3 - distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip 3 + distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip 4 4 networkTimeout=10000 5 5 validateDistributionUrl=true 6 6 zipStoreBase=GRADLE_USER_HOME
+4 -2
gradlew
··· 15 15 # See the License for the specific language governing permissions and 16 16 # limitations under the License. 17 17 # 18 + # SPDX-License-Identifier: Apache-2.0 19 + # 18 20 19 21 ############################################################################## 20 22 # ··· 55 57 # Darwin, MinGW, and NonStop. 56 58 # 57 59 # (3) This script is generated from the Groovy template 58 - # https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt 60 + # https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt 59 61 # within the Gradle project. 60 62 # 61 63 # You can find Gradle at https://github.com/gradle/gradle/. ··· 84 86 # shellcheck disable=SC2034 85 87 APP_BASE_NAME=${0##*/} 86 88 # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) 87 - APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit 89 + APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit 88 90 89 91 # Use the maximum available, or set MAX_FD != -1 to use that value. 90 92 MAX_FD=maximum
+2
gradlew.bat
··· 13 13 @rem See the License for the specific language governing permissions and 14 14 @rem limitations under the License. 15 15 @rem 16 + @rem SPDX-License-Identifier: Apache-2.0 17 + @rem 16 18 17 19 @if "%DEBUG%"=="" @echo off 18 20 @rem ##########################################################################
src/client/java/io/github/justapotota/breakfree/mixin/ClientPlayerInteractionManagerMixin.java src/main/java/io/github/justapotota/breakfree/mixin/ClientPlayerInteractionManagerMixin.java
src/client/resources/assets/breakfree/icon.png src/main/resources/assets/breakfree/icon.png
src/client/resources/assets/breakfree/lang/en_us.json src/main/resources/assets/breakfree/lang/en_us.json
src/client/resources/assets/breakfree/lang/ru_ru.json src/main/resources/assets/breakfree/lang/ru_ru.json
src/client/resources/breakfree.mixins.json src/main/resources/breakfree.mixins.json
+2 -2
src/client/resources/fabric.mod.json src/main/resources/fabric.mod.json
··· 19 19 "breakfree.mixins.json" 20 20 ], 21 21 "depends": { 22 - "fabricloader": ">=0.15.10", 23 - "minecraft": "1.21.x", 22 + "fabricloader": ">=0.16.10", 23 + "minecraft": "${minecraft_version}", 24 24 "java": ">=21" 25 25 } 26 26 }