Skip to content

Commit faa9677

Browse files
committed
Merge branch '1.21' of https://github.com/GregTechCEu/GregTech-Modern into 1.21
2 parents aeda414 + 3ee206d commit faa9677

448 files changed

Lines changed: 6753 additions & 3721 deletions

File tree

Some content is hidden

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

.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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
77

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

.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/advanced-issue-labeler.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.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)