Skip to content

Commit 17247f2

Browse files
committed
Revert gradle/shadow update, for now
This reverts commit dc322cb and 27cd53e.
1 parent e1e8b67 commit 17247f2

File tree

9 files changed

+24
-19
lines changed

9 files changed

+24
-19
lines changed

build-logic/src/main/kotlin/geyser.platform-conventions.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tasks {
1111
"id" to "geyser",
1212
"name" to "Geyser",
1313
"version" to project.version,
14-
"description" to project.description as String,
14+
"description" to project.description,
1515
"url" to "https://geysermc.org",
1616
"author" to "GeyserMC"
1717
)

build-logic/src/main/kotlin/geyser.publish-conventions.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ indra {
77
publishSnapshotsTo("geysermc", "https://repo.opencollab.dev/maven-snapshots")
88
publishReleasesTo("geysermc", "https://repo.opencollab.dev/maven-releases")
99
}
10+
11+
publishing {
12+
// skip shadow jar from publishing. Workaround for https://github.com/johnrengelman/shadow/issues/651
13+
val javaComponent = project.components["java"] as AdhocComponentWithVariants
14+
javaComponent.withVariantsFromConfiguration(configurations["shadowRuntimeElements"]) { skip() }
15+
}

build-logic/src/main/kotlin/geyser.shadow-conventions.gradle.kts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
22

33
plugins {
44
id("geyser.base-conventions")
5-
id("com.gradleup.shadow")
6-
}
7-
8-
shadow {
9-
addShadowVariantIntoJavaComponent = false
5+
id("com.github.johnrengelman.shadow")
106
}
117

128
tasks {
@@ -37,4 +33,4 @@ tasks {
3733
named("build") {
3834
dependsOn(shadowJar)
3935
}
40-
}
36+
}

core/build.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,8 @@ dependencies {
5959
}
6060

6161
// Test
62-
testImplementation(platform("org.junit:junit-bom:6.0.0"))
6362
testImplementation(libs.junit)
6463
testImplementation(libs.mockito)
65-
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
6664

6765
// Annotation Processors
6866
compileOnly(projects.ap)
@@ -110,7 +108,7 @@ fun isDevBuild(branch: String, repository: String): Boolean {
110108
return branch != "master" || repository.equals("https://github.com/GeyserMC/Geyser", ignoreCase = true).not()
111109
}
112110

113-
class GitInfo {
111+
inner class GitInfo {
114112
val branch: String
115113
val commit: String
116114
val commitAbbrev: String

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ minecraftauth = "4.1.1"
1717
mcprotocollib = "1.21.9-20251026.124736-17"
1818
adventure = "4.25.0"
1919
adventure-platform = "4.4.1"
20-
junit = "6.0.0"
20+
junit = "5.9.2"
2121
checkerframework = "3.19.0"
2222
log4j = "2.20.0"
2323
jline = "3.21.0"
@@ -47,7 +47,7 @@ runvelocityversion = "3.4.0-SNAPSHOT"
4747

4848
# plugin versions
4949
indra = "3.1.3"
50-
shadow = "9.2.2"
50+
shadow = "8.1.1"
5151
architectury-plugin = "3.4-SNAPSHOT"
5252
architectury-loom = "1.11-SNAPSHOT"
5353
minotaur = "2.8.7"
@@ -149,7 +149,7 @@ mockito = { module = "org.mockito:mockito-core", version.ref = "mockito" }
149149
# plugins
150150
lombok = { group = "io.freefair.gradle", name = "lombok-plugin", version.ref = "lombok" }
151151
indra = { group = "net.kyori", name = "indra-common", version.ref = "indra" }
152-
shadow = { group = "com.gradleup.shadow", name = "com.gradleup.shadow.gradle.plugin", version.ref = "shadow" }
152+
shadow = { group = "com.github.johnrengelman", name = "shadow", version.ref = "shadow" }
153153
architectury-plugin = { group = "architectury-plugin", name = "architectury-plugin.gradle.plugin", version.ref = "architectury-plugin" }
154154
architectury-loom = { group = "dev.architectury.loom", name = "dev.architectury.loom.gradle.plugin", version.ref = "architectury-loom" }
155155
minotaur = { group = "com.modrinth.minotaur", name = "Minotaur", version.ref = "minotaur" }

gradle/wrapper/gradle-wrapper.jar

-2 KB
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-9.2.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
#
4-
# Copyright © 2015 the original authors.
4+
# Copyright © 2015-2021 the original authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -86,7 +86,8 @@ 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\n' "$PWD" ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90+
' "$PWD" ) || exit
9091

9192
# Use the maximum available, or set MAX_FD != -1 to use that value.
9293
MAX_FD=maximum
@@ -114,6 +115,7 @@ case "$( uname )" in #(
114115
NONSTOP* ) nonstop=true ;;
115116
esac
116117

118+
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
117119

118120

119121
# Determine the Java command to use to start the JVM.
@@ -171,6 +173,7 @@ fi
171173
# For Cygwin or MSYS, switch paths to Windows format before running java
172174
if "$cygwin" || "$msys" ; then
173175
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
176+
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
174177

175178
JAVACMD=$( cygpath --unix "$JAVACMD" )
176179

@@ -203,14 +206,15 @@ fi
203206
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
204207

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

211214
set -- \
212215
"-Dorg.gradle.appname=$APP_BASE_NAME" \
213-
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
216+
-classpath "$CLASSPATH" \
217+
org.gradle.wrapper.GradleWrapperMain \
214218
"$@"
215219

216220
# Stop when "xargs" is not available.

gradlew.bat

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

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

7475

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

7879
:end
7980
@rem End local scope for the variables with windows NT shell

0 commit comments

Comments
 (0)