Skip to content

Commit 8bcae52

Browse files
Merge pull request #48 from OrnitheMC/networking-rewrite
Networking rewrite
2 parents 37e23fc + 8506609 commit 8bcae52

File tree

448 files changed

+16778
-15275
lines changed

Some content is hidden

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

448 files changed

+16778
-15275
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ jobs:
1616
- uses: actions/setup-java@v4
1717
with:
1818
distribution: 'temurin'
19-
java-version: '17'
19+
java-version: '21'
2020

21-
- name: validate gradle wrapper
21+
- name: wrapper validation
2222
uses: gradle/actions/wrapper-validation@v4
2323

24+
- name: make gradle wrapper executable
25+
if: ${{ runner.os != 'Windows' }}
26+
run: chmod +x ./gradlew
27+
2428
- name: build
2529
run: ./gradlew build --stacktrace
2630

.github/workflows/publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,23 @@ name: Release
22
on: [workflow_dispatch] # Manual trigger
33
jobs:
44
build:
5-
runs-on: ${{ matrix.os }}
5+
runs-on: ubuntu-24.04
66
steps:
77
- name: checkout repository
88
uses: actions/checkout@v4
99

1010
- uses: actions/setup-java@v4
1111
with:
1212
distribution: 'temurin'
13-
java-version: '17'
13+
java-version: '21'
1414

15-
- name: validate gradle wrapper
15+
- name: wrapper validation
1616
uses: gradle/actions/wrapper-validation@v4
1717

18+
- name: make gradle wrapper executable
19+
if: ${{ runner.os != 'Windows' }}
20+
run: chmod +x ./gradlew
21+
1822
- name: build
1923
run: ./gradlew build publish --stacktrace
2024
env:

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ plugins {
33
id 'eclipse'
44
id 'idea'
55
id 'maven-publish'
6-
id 'fabric-loom' version '1.10-SNAPSHOT' apply false
7-
id 'ploceus' version '1.10-SNAPSHOT' apply false
6+
id 'fabric-loom' version '1.12-SNAPSHOT' apply false
7+
id 'ploceus' version '1.12-SNAPSHOT' apply false
88
}
99

1010
setUpJar(project)
@@ -49,7 +49,7 @@ def setUpJar(project) {
4949
project.group = "${project.rootProject.root_maven_group}"
5050

5151
project.ploceus {
52-
setGeneration(2)
52+
setIntermediaryGeneration(2)
5353
}
5454

5555
project.repositories {
@@ -194,7 +194,7 @@ def setUpModule(project, String... dependencies) {
194194
}
195195
}
196196
project.ploceus {
197-
setGeneration(2)
197+
setIntermediaryGeneration(2)
198198
}
199199

200200
def libraries = getLibraryDependencies(project, dependencies)

gradle/wrapper/gradle-wrapper.jar

181 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ done
8686
# shellcheck disable=SC2034
8787
APP_BASE_NAME=${0##*/}
8888
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89-
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90-
' "$PWD" ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
9190

9291
# Use the maximum available, or set MAX_FD != -1 to use that value.
9392
MAX_FD=maximum
@@ -115,7 +114,7 @@ case "$( uname )" in #(
115114
NONSTOP* ) nonstop=true ;;
116115
esac
117116

118-
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
117+
CLASSPATH="\\\"\\\""
119118

120119

121120
# Determine the Java command to use to start the JVM.
@@ -206,15 +205,15 @@ fi
206205
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
207206

208207
# Collect all arguments for the java command:
209-
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
208+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
210209
# and any embedded shellness will be escaped.
211210
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
212211
# treated as '${Hostname}' itself on the command line.
213212

214213
set -- \
215214
"-Dorg.gradle.appname=$APP_BASE_NAME" \
216215
-classpath "$CLASSPATH" \
217-
org.gradle.wrapper.GradleWrapperMain \
216+
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
218217
"$@"
219218

220219
# Stop when "xargs" is not available.

gradlew.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ goto fail
7070
:execute
7171
@rem Setup the command line
7272

73-
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73+
set CLASSPATH=
7474

7575

7676
@rem Execute Gradle
77-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
77+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
7878

7979
:end
8080
@rem End local scope for the variables with windows NT shell
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
setUpLibrary(project)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
version = 0.1.0
2+
archives_base_name = networking-impl
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
setUpModule(project,
2+
'entrypoints-mc13w16a-04192037-mc1.14.4',
3+
'lifecycle-events-mc13w36a-09051446-mc1.13',
4+
'networking-mc13w41a-mc18w30b'
5+
)

0 commit comments

Comments
 (0)