Skip to content

Commit 9a662e3

Browse files
authored
Merge pull request #14 from SmushyTaco/7.3-new
Finishing Touches
2 parents e50d7fd + 94296eb commit 9a662e3

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
matrix:
1313
# Use these Java versions
1414
java: [
15-
17, # Current Java LTS & minimum supported by Minecraft
15+
21, # Current Java LTS & minimum supported by Minecraft
1616
]
1717
# and run on both Linux and Windows
1818
os: [ubuntu-latest, windows-latest]
@@ -34,7 +34,7 @@ jobs:
3434
- name: build
3535
run: ./gradlew build
3636
- name: capture build artifacts
37-
if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS
37+
if: ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from latest java on one OS
3838
uses: actions/upload-artifact@v5
3939
with:
4040
name: Artifacts

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Template for making Babric mods for BTA!
55
**Note: *DO NOT fork this repository unless you want to contribute!***
66

77
## Prerequisites
8-
- JDK for Java 17 ([Eclipse Temurin](https://adoptium.net/temurin/releases/) recommended)
8+
- JDK for Java 21 ([Eclipse Temurin](https://adoptium.net/temurin/releases/) recommended)
99
- [Intellij IDEA](https://www.jetbrains.com/idea/download/) (Scroll down for the free community edition, if using linux **DO NOT** use the flatpak distribution)
1010
- Minecraft Development plugin (Optional, but highly recommended)
1111

@@ -32,6 +32,8 @@ Template for making Babric mods for BTA!
3232
1. If you haven't already you should join the BTA modding discord! https://discord.gg/FTUNJhswBT
3333
2. You can set your username when launching the client run configuration by setting `--username <username>` in your program arguments.
3434
3. When launching the server run configuration you may want to remove the `nogui` program argument in order to see the regular server GUI.
35-
4. In Intellij you can double press shift or press ctrl+N to search class files, change the search from the default `Project Files` to `All Places` you can easily explore the classes for you dependencies and even BTA itself.
36-
5. In Intellij if ctrl+left click on a field or method you can quickly get information on when and where that field or method is assign or used.
35+
4. In Intellij you can double press shift or press ctrl+N to search class files, change the search from the default `Project Files` to `All Places` you can easily explore the classes for your dependencies and even BTA itself.
36+
5. In Intellij if ctrl+left-click on a field or method you can quickly get information on when and where that field or method is assign or used.
37+
6. Ensure IntelliJ is updated to the latest version. This is important because this template uses the latest Gradle version and if your IntelliJ installation is outdated, it may not support the latest version.
38+
7. In the `examplemod.mixins.json` you'll see `"compatibilityLevel": "JAVA_${java}",` along with an error message from the `Minecraft Development` plugin stating `Cannot resolve compatibility level 'JAVA_${java}'`. You can safely ignore this. The Gradle build system has been set up to grab the Java version from your `gradle.properties` and replace `${java}` with it. So the compiled binary will properly have it as `JAVA_8`.
3739

gradle.properties

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
##########################################################################
22
# Standard Properties
33
org.gradle.jvmargs = -Xmx2G
4-
org.gradle.warning.mode = summary
4+
org.gradle.warning.mode = all
5+
# This currently has to be set to false because the "Minecraft Client" and "Minecraft Server" configurations generated
6+
# by IntelliJ aren't currently compatible with the configuration cache. If you use the runClient and runServer Gradle
7+
# tasks instead, then this can (and should) be set to true.
58
org.gradle.configuration-cache = false
69
##########################################################################
710
# Standard BTA Dependencies
811
# Check this on https://downloads.betterthanadventure.net/bta-client/
912
bta_version = 7.3_04
1013
# Options are release, prerelease, nightly, and misc.
1114
bta_channel = release
12-
# Check this on https://github.com/Turnip-Labs/fabric-loader/releases/latest/
13-
loader_version = 0.15.6-bta.7
15+
# Check this on https://maven.thesignalumproject.net/#/infrastructure/net/fabricmc/fabric-loader/
16+
loader_version = 0.17.3-bta.8
1417
# Check this on https://maven.thesignalumproject.net/#/infrastructure/fabric-loom/fabric-loom.gradle.plugin/
15-
loom_version = 1.10.0-bta
18+
loom_version = 1.13.0-bta
1619
java_version = 8
1720
##########################################################################
1821
# Mod Properties
@@ -27,7 +30,7 @@ mod_menu_version = 3.0.0
2730
halplibe_version = 5.3.1
2831
##########################################################################
2932
# 3rd Party Dependencies
30-
# Check this on central.sonatype.com/artifact/org.slf4j/slf4j-api/
33+
# Check this on https://central.sonatype.com/artifact/org.slf4j/slf4j-api/
3134
slf4j_api_version = 2.0.17
3235
# Check this on https://central.sonatype.com/artifact/org.apache.logging.log4j/log4j-api/
3336
log4j_version = 2.25.2

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Check this on https://gradle.org/releases/
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
34
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.0-all.zip

0 commit comments

Comments
 (0)