Skip to content

Commit ca3c026

Browse files
committed
Merge 1.16 into 1.18
2 parents 4159644 + 20c0f3d commit ca3c026

File tree

7 files changed

+45
-44
lines changed

7 files changed

+45
-44
lines changed

.github/workflows/gradle.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,34 @@ on:
1010

1111
jobs:
1212
build:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04
1414
steps:
1515
- name: Checkout Repository
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 0
1919
- name: Set up JDK 17
20-
uses: actions/setup-java@v3
20+
uses: actions/setup-java@v4
2121
with:
2222
distribution: 'temurin'
2323
java-version: 17
24+
check-latest: true
2425
- name: Setup Gradle
25-
uses: gradle/gradle-build-action@v2
26+
uses: gradle/actions/setup-gradle@v3
2627
with:
2728
cache-read-only: ${{ !startsWith(github.ref, 'refs/heads/1.') }}
2829
gradle-home-cache-cleanup: true
2930
- name: Setup project Loom cache
30-
uses: actions/cache@v3
31+
uses: actions/cache@v4
3132
with:
3233
path: |
3334
.gradle/loom-cache
3435
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle.properties', '**/*.gradle*', '**/gradle-wrapper.properties') }}
3536
restore-keys: ${{ runner.os }}-gradle-
36-
- name: Build ModernFix
37-
run: |
38-
chmod +x gradlew
39-
./gradlew build
37+
- name: Build ModernFix using Gradle
38+
run: ./gradlew build
4039
- name: Upload Artifacts to GitHub
41-
uses: actions/upload-artifact@v3
40+
uses: actions/upload-artifact@v4
4241
with:
4342
name: Package
4443
path: bin

.github/workflows/release.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,27 @@ on:
88
jobs:
99
release:
1010
if: github.repository_owner == 'embeddedt'
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-22.04
1212
steps:
1313
- name: Checkout Repository
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717
- name: Set up JDK 17
18-
uses: actions/setup-java@v3
18+
uses: actions/setup-java@v4
1919
with:
2020
distribution: 'temurin'
2121
java-version: 17
22+
check-latest: true
2223
- name: Remove tags for release on other versions
2324
run: ./scripts/tagcleaner.sh
2425
- name: Build and publish mod to CurseForge & Modrinth
25-
run: |
26-
chmod +x gradlew
27-
./gradlew publishToModSites copyJarToBin
26+
run: ./gradlew publishToModSites copyJarToBin
2827
env:
2928
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
3029
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
3130
- name: Upload assets to GitHub
32-
uses: AButler/upload-release-assets@v2.0
31+
uses: AButler/upload-release-assets@v3.0
3332
with:
3433
files: 'bin/*'
3534
repo-token: ${{ secrets.GITHUB_TOKEN }}
@@ -39,4 +38,4 @@ jobs:
3938
token: ${{ secrets.GITHUB_TOKEN }}
4039
id: ${{ github.event.release.id }}
4140
replacebody: true
42-
files: "CHANGELOG.md"
41+
files: "CHANGELOG.md"

.github/workflows/wiki_update.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ on:
88
jobs:
99
wikigen:
1010
if: github.repository_owner == 'embeddedt'
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-22.04
1212
steps:
1313
- name: Checkout Repository
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717
- name: Generate Markdown Patch-List
@@ -24,4 +24,4 @@ jobs:
2424
with:
2525
path: "doc/generated"
2626
env:
27-
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.WIKI_TOKEN }}
27+
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.WIKI_TOKEN }}

gradle/wrapper/gradle-wrapper.jar

-19.4 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

gradlew

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ done
8383
# This is normally unused
8484
# shellcheck disable=SC2034
8585
APP_BASE_NAME=${0##*/}
86-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
86+
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87+
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
8788

8889
# Use the maximum available, or set MAX_FD != -1 to use that value.
8990
MAX_FD=maximum
@@ -144,15 +145,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144145
case $MAX_FD in #(
145146
max*)
146147
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147-
# shellcheck disable=SC3045
148+
# shellcheck disable=SC2039,SC3045
148149
MAX_FD=$( ulimit -H -n ) ||
149150
warn "Could not query maximum file descriptor limit"
150151
esac
151152
case $MAX_FD in #(
152153
'' | soft) :;; #(
153154
*)
154155
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155-
# shellcheck disable=SC3045
156+
# shellcheck disable=SC2039,SC3045
156157
ulimit -n "$MAX_FD" ||
157158
warn "Could not set maximum file descriptor limit to $MAX_FD"
158159
esac
@@ -199,13 +200,13 @@ fi
199200

200201

201202
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
202-
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
203+
DEFAULT_JVM_OPTS='-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m"'
203204

204-
# Collect all arguments for the java command;
205-
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
206-
# shell script including quotes and variable substitutions, so put them in
207-
# double quotes to make sure that they get re-expanded; and
208-
# * put everything else in single quotes, so that it's not re-expanded.
205+
# Collect all arguments for the java command:
206+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207+
# and any embedded shellness will be escaped.
208+
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209+
# treated as '${Hostname}' itself on the command line.
209210

210211
set -- \
211212
"-Dorg.gradle.appname=$APP_BASE_NAME" \
@@ -245,4 +246,4 @@ eval "set -- $(
245246
tr '\n' ' '
246247
)" '"$@"'
247248

248-
exec "$JAVACMD" "$@"
249+
exec "$JAVACMD" "$@"

gradlew.bat

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ set APP_HOME=%DIRNAME%
3434
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
3535

3636
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
37-
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37+
set DEFAULT_JVM_OPTS=-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m"
3838

3939
@rem Find java.exe
4040
if defined JAVA_HOME goto findJavaFromJavaHome
@@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
4343
%JAVA_EXE% -version >NUL 2>&1
4444
if %ERRORLEVEL% equ 0 goto execute
4545

46-
echo.
47-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48-
echo.
49-
echo Please set the JAVA_HOME variable in your environment to match the
50-
echo location of your Java installation.
46+
echo. 1>&2
47+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48+
echo. 1>&2
49+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50+
echo location of your Java installation. 1>&2
5151

5252
goto fail
5353

@@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5757

5858
if exist "%JAVA_EXE%" goto execute
5959

60-
echo.
61-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62-
echo.
63-
echo Please set the JAVA_HOME variable in your environment to match the
64-
echo location of your Java installation.
60+
echo. 1>&2
61+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62+
echo. 1>&2
63+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64+
echo location of your Java installation. 1>&2
6565

6666
goto fail
6767

@@ -89,4 +89,4 @@ exit /b %EXIT_CODE%
8989
:mainEnd
9090
if "%OS%"=="Windows_NT" endlocal
9191

92-
:omega
92+
:omega

0 commit comments

Comments
 (0)