Skip to content

Commit eb3a985

Browse files
committed
Update Java version to 21 and adjust related properties in Gradle configuration
1 parent 12f40e5 commit eb3a985

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/cd.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ jobs:
2323

2424
steps:
2525
- uses: actions/checkout@v4
26-
- name: Set up JDK 17
26+
- name: Set up JDK 21
2727
uses: actions/setup-java@v4
2828
with:
29-
java-version: "17"
30-
distribution: "temurin"
29+
java-version: "21"
30+
distribution: "microsoft"
3131

3232
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
3333
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
3434
- name: Setup Gradle
3535
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
3636

37-
# Get version from gradle.properties
37+
# Get version from gradle.properties setting it as an environment variable
3838
- name: Get Version
3939
id: get_version
4040
run: echo "version=$(grep '^plugin_version=' gradle.properties | cut -d'=' -f2)" >> $GITHUB_ENV
@@ -44,6 +44,8 @@ jobs:
4444

4545
- name: Create Release
4646
uses: softprops/action-gh-release@v1
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4749
with:
4850
draft: false
4951
generate_release_notes: true

gradle.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ maven_group = org.example
1111

1212
# use java 17 for minecraft versions 1.20.4 and older
1313
# use java 21 for minecraft versions 1.20.5 and newer
14-
java_version = 17
14+
java_version = 21
1515

1616
# minecraft version to compile with
1717
# other supported versions of the game can be added in rusherhack-plugin.json
18-
minecraft_version = 1.20.1
18+
minecraft_version = 1.21.4
1919

2020
# parchment mappings
21-
parchment_version = 1.20.1:2023.09.03
21+
parchment_version = 1.21.4:2025.03.23
2222

2323
# fabric loader version
24-
fabric_loader_version = 0.16.9
24+
fabric_loader_version = 0.16.14

0 commit comments

Comments
 (0)