Skip to content

Commit 7c7a7b6

Browse files
authored
Merge branch '1.20.1' into 1.20.1
2 parents 5801981 + de41fd9 commit 7c7a7b6

5,146 files changed

Lines changed: 135529 additions & 31137 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.

.git-blame-ignore-revs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# .git-blame-ignore-revs
2+
# add spotless formatting to 1.20.1 (#1334)
3+
5f59025e1044042dcd0913799d873f810f2fb220
4+
# Drop Fabric Support (1.20) (#735)
5+
5f9f2d8303d19aa1c749ee5ca8cd4149d90520f0

.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
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"categories": [
3+
{
4+
"title": "### Added",
5+
"labels": ["type: feature"]
6+
},
7+
{
8+
"title": "### Fixed",
9+
"labels": ["type: bugfix"]
10+
},
11+
{
12+
"title": "### Changed",
13+
"labels": ["type: refactor", "type: translation"]
14+
}
15+
],
16+
"sort": "ASC",
17+
"template": "## What's Changed since #{{FROM_TAG}}\n#{{CHANGELOG}}\n#{{UNCATEGORIZED}}\n#{{CHANGES}} lines changed - see the [full diff here](#{{RELEASE_DIFF}})",
18+
"pr_template": "- #{{TITLE}} by @#{{AUTHOR}} in [##{{NUMBER}}](#{{URL}})",
19+
"empty_template": "",
20+
"ignore_labels": ["ignore changelog"],
21+
"tag_resolver": {
22+
"method": "semver",
23+
"filter": {
24+
"pattern": "^(?!v?[0-9\\.]+(-1\\.21)$).+$",
25+
"flags": "gu"
26+
},
27+
"transformer": {
28+
"pattern": "v?([0-9\\.]+)(-[0-9\\.]+)?",
29+
"target": "$1"
30+
}
31+
},
32+
"max_pull_requests": 1000,
33+
"max_back_track_time_days": 365,
34+
"base_branches": ["1.21"]
35+
}

.github/json/config-latest.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,22 @@
1414
}
1515
],
1616
"sort": "ASC",
17-
"template": "## What's Changed\n#{{CHANGELOG}}\n#{{UNCATEGORIZED}}",
17+
"template": "## What's Changed since #{{FROM_TAG}}\n#{{CHANGELOG}}\n#{{UNCATEGORIZED}}\n#{{CHANGES}} lines changed - see the [full diff here](#{{RELEASE_DIFF}})",
1818
"pr_template": "- #{{TITLE}} by @#{{AUTHOR}} in [##{{NUMBER}}](#{{URL}})",
1919
"empty_template": "",
2020
"ignore_labels": ["ignore changelog"],
21+
"tag_resolver": {
22+
"method": "semver",
23+
"filter": {
24+
"pattern": "^(?!v?[0-9\\.]+(-1\\.20\\.1)?$).+$",
25+
"flags": "gu"
26+
},
27+
"transformer": {
28+
"pattern": "v?([0-9\\.]+)(-[0-9\\.]+)?",
29+
"target": "$1"
30+
}
31+
},
2132
"max_pull_requests": 1000,
22-
"max_back_track_time_days": 30
33+
"max_back_track_time_days": 365,
34+
"base_branches": ["1.20.1"]
2335
}

.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: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
env:
1616
GITHUB_TOKEN: ${{ github.token }}
17+
PUBLISH: ${{ !contains(github.event.commits[0].message, '[no-snapshot]') }}
1718
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
1819
MAVEN_USER: ${{ secrets.MAVEN_USER }}
1920
SNAPSHOT: true
@@ -22,6 +23,8 @@ jobs:
2223
contents: write
2324
steps:
2425
- 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
2528
- name: Setup Build
2629
uses: ./.github/actions/build_setup
2730
- name: Get Mod Version
@@ -30,15 +33,16 @@ jobs:
3033
- name: Version Suffix
3134
id: suffix
3235
run: echo "VERSION_SUFFIX=$(echo "${{ github.sha }}" | cut -c 1-7)" >> $GITHUB_ENV
33-
- run: git fetch origin 1.20.1
3436
- name: Build
35-
run: ./gradlew build --build-cache
37+
run: ./gradlew build
3638
- name: Publish to Maven
37-
if: github.repository_owner == 'GregTechCEu'
38-
run: ./gradlew publish --build-cache
39+
if: ${{ github.repository_owner == 'GregTechCEu' && env.PUBLISH == 'true' }}
40+
run: ./gradlew publish
3941
- name: Rename Jars
40-
run: for file in build/libs/*; do mv "$file" "${file/SHOT/SHOT-$(date --utc '+%Y%m%d-%H%M%S')-${{ env.VERSION_SUFFIX }}}"; done;
42+
if: ${{ env.PUBLISH == 'true' }}
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;
4144
- name: Upload Artifacts
45+
if: ${{ env.PUBLISH == 'true' }}
4246
uses: actions/upload-artifact@v4
4347
with:
4448
name: build-artifacts
@@ -47,14 +51,15 @@ jobs:
4751
retention-days: 90
4852
- name: Changelog
4953
id: changelog
54+
if: ${{ env.PUBLISH == 'true' }}
5055
uses: mikepenz/release-changelog-builder-action@v5
5156
with:
52-
configuration: ./.github/json/config-latest.json
53-
fromTag: latest-${{ github.ref_name }}
57+
configuration: "./.github/json/config-latest${{ contains(github.ref_name, '1.21') && '-1.21' || '' }}.json"
5458
toTag: ${{ github.ref }}
5559
fetchViaCommits: true
5660
failOnError: false
5761
- name: Release Latest
62+
if: ${{ env.PUBLISH == 'true' }}
5863
uses: andelf/nightly-release@46e2d5f80828ecc5c2c3c819eb31186a7cf2156c
5964
with:
6065
tag_name: latest-${{ github.ref_name }}

0 commit comments

Comments
 (0)