Skip to content

Commit dd2b2db

Browse files
Merge remote-tracking branch 'upstream/1.20.1' into 1.20.1
2 parents e54d7ce + 1a78fea commit dd2b2db

File tree

5,018 files changed

+130631
-29827
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,018 files changed

+130631
-29827
lines changed

.gitattributes

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Set the default behavior, in case people don't have core.autocrlf set.
2-
* text=autolf
2+
* text=auto
33

44
# Explicitly declare text files you want to always be normalized and converted
55
# to native line endings on checkout.
66
*.json text eol=lf
7+
src/generated/resources/.cache/** text eol=lf
78

89
# Denote all files that are truly binary and should not be modified.
9-
*.png binary
10+
*.png binary

.github/ISSUE_TEMPLATE/001-feature-request.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ body:
88
label: Cross-mod Integration
99
description: "Does this feature involve integration with another mod? If so specify the mod(s). Otherwise, leave this blank."
1010
placeholder: "Example: Create Mod"
11+
- type: dropdown
12+
id: mc-version
13+
attributes:
14+
label: Minecraft Version
15+
description: The version of Minecraft you wish this feature was added for.
16+
options:
17+
- "Both"
18+
- "1.20.1 Forge"
19+
- "1.21.1 NeoForge"
1120
- type: textarea
1221
id: description
1322
attributes:

.github/actions/build_setup/action.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,9 @@ runs:
2424
distribution: temurin
2525
java-version: ${{ contains(env.REF, '1.20.1') && '17' || '21' }}
2626

27-
- name: Validate Gradle wrapper
28-
uses: gradle/actions/wrapper-validation@v3
29-
30-
- name: Grant execute permission for gradlew
31-
shell: bash
32-
run: chmod +x gradlew
33-
3427
- name: Setup Gradle
35-
uses: gradle/actions/setup-gradle@v3
28+
uses: gradle/actions/setup-gradle@v4
3629
with:
3730
cache-write-only: ${{ inputs.update-cache }}
38-
generate-job-summary: false
39-
gradle-home-cache-includes: |
40-
caches
41-
notifications
42-
jdks
43-
wrapper
31+
cache-read-only: ${{ github.ref != 'refs/heads/1.20.1' && github.ref != 'refs/heads/1.21' }}
32+
add-job-summary: 'on-failure'

.github/json/config-1.21.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@
4040
}
4141
},
4242
"max_pull_requests": 1000,
43-
"max_back_track_time_days": 90,
43+
"max_back_track_time_days": 365,
4444
"base_branches": ["1.21"]
4545
}

.github/json/config-latest-1.21.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@
3030
}
3131
},
3232
"max_pull_requests": 1000,
33-
"max_back_track_time_days": 60
33+
"max_back_track_time_days": 365,
34+
"base_branches": ["1.21"]
3435
}

.github/json/config-latest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@
3030
}
3131
},
3232
"max_pull_requests": 1000,
33-
"max_back_track_time_days": 60
33+
"max_back_track_time_days": 365,
34+
"base_branches": ["1.20.1"]
3435
}

.github/json/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@
4040
}
4141
},
4242
"max_pull_requests": 1000,
43-
"max_back_track_time_days": 90,
43+
"max_back_track_time_days": 365,
4444
"base_branches": ["1.20.1"]
4545
}

.github/labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# https://github.com/github/issue-labeler#usage
2+
1.20.1:
3+
- '/^1\.20\.1 Forge$/m'
4+
1.21:
5+
- '/^1\.21\.1 NeoForge$/m'

.github/workflows/auto-build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
contents: write
2424
steps:
2525
- uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0 # do a full checkout instead of a shallow clone of HEAD so spotless's ratchetFrom works
2628
- name: Setup Build
2729
uses: ./.github/actions/build_setup
2830
- name: Get Mod Version
@@ -31,15 +33,14 @@ jobs:
3133
- name: Version Suffix
3234
id: suffix
3335
run: echo "VERSION_SUFFIX=$(echo "${{ github.sha }}" | cut -c 1-7)" >> $GITHUB_ENV
34-
- run: git fetch origin 1.20.1
3536
- name: Build
36-
run: ./gradlew build --build-cache
37+
run: ./gradlew build
3738
- name: Publish to Maven
3839
if: ${{ github.repository_owner == 'GregTechCEu' && env.PUBLISH == 'true' }}
39-
run: ./gradlew publish --build-cache
40+
run: ./gradlew publish
4041
- name: Rename Jars
4142
if: ${{ env.PUBLISH == 'true' }}
42-
run: for file in build/libs/*; do mv "$file" "${file/SHOT/SHOT-$(date --utc '+%Y%m%d-%H%M%S')-${{ env.VERSION_SUFFIX }}}"; done;
43+
run: for file in build/libs/*; do mv "$file" "${file/SHOT/SHOT+$(date --utc '+%Y%m%d-%H%M%S')-${{ env.VERSION_SUFFIX }}}"; done;
4344
- name: Upload Artifacts
4445
if: ${{ env.PUBLISH == 'true' }}
4546
uses: actions/upload-artifact@v4

.github/workflows/build-on-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: ./.github/actions/build_setup
3333
- name: Build
3434
if: steps.filter.outputs.code == 'true'
35-
run: ./gradlew assemble --build-cache
35+
run: ./gradlew assemble
3636
- name: Rename Jars
3737
if: steps.filter.outputs.code == 'true'
3838
run: for file in build/libs/*; do mv "$file" "${file/.jar/-${{ env.VERSION_SUFFIX }}.jar}"; done;

0 commit comments

Comments
 (0)