File tree 2 files changed +10
-19
lines changed
2 files changed +10
-19
lines changed Original file line number Diff line number Diff line change @@ -8,32 +8,23 @@ on: [pull_request, push]
8
8
9
9
jobs :
10
10
build :
11
- strategy :
12
- matrix :
13
- # Use these Java versions
14
- java : [
15
- 17, # Current Java LTS & minimum supported by Minecraft
16
- ]
17
- # and run on both Linux and Windows
18
- os : [ubuntu-20.04, windows-2022]
19
- runs-on : ${{ matrix.os }}
11
+ runs-on : ubuntu-24.04
20
12
steps :
21
13
- name : checkout repository
22
- uses : actions/checkout@v2
14
+ uses : actions/checkout@v4
23
15
- name : validate gradle wrapper
24
- uses : gradle/wrapper-validation-action@v1
25
- - name : setup jdk ${{ matrix.java }}
26
- uses : actions/setup-java@v1
16
+ uses : gradle/wrapper-validation-action@v2
17
+ - name : setup jdk 21
18
+ uses : actions/setup-java@v4
27
19
with :
28
- java-version : ${{ matrix.java }}
20
+ java-version : 21
21
+ distribution : ' microsoft'
29
22
- name : make gradle wrapper executable
30
- if : ${{ runner.os != 'Windows' }}
31
23
run : chmod +x ./gradlew
32
24
- name : build
33
25
run : ./gradlew build
34
26
- name : capture build artifacts
35
- if : ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS
36
- uses : actions/upload-artifact@v2
27
+ uses : actions/upload-artifact@v4
37
28
with :
38
29
name : Artifacts
39
30
path : build/libs/
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ plugins {
4
4
id " me.modmuss50.mod-publish-plugin" version " 0.5.1"
5
5
}
6
6
7
- version = project. mod_version
7
+ version = project. mod_version + ' + ' + project . minecraft_version
8
8
group = project. maven_group
9
9
10
10
base {
11
- archivesName = project. archives_base_name + ' - ' + project . minecraft_version
11
+ archivesName = project. archives_base_name
12
12
}
13
13
14
14
loom {
You can’t perform that action at this time.
0 commit comments