1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-19 14:59:27 +00:00

Revert gradle/shadow update, for now

This reverts commit dc322cba0a and 27cd53ead8.
This commit is contained in:
onebeastchris
2025-10-30 02:19:42 +01:00
parent e1e8b6734b
commit 17247f2c33
9 changed files with 24 additions and 19 deletions

View File

@@ -11,7 +11,7 @@ tasks {
"id" to "geyser",
"name" to "Geyser",
"version" to project.version,
"description" to project.description as String,
"description" to project.description,
"url" to "https://geysermc.org",
"author" to "GeyserMC"
)

View File

@@ -7,3 +7,9 @@ indra {
publishSnapshotsTo("geysermc", "https://repo.opencollab.dev/maven-snapshots")
publishReleasesTo("geysermc", "https://repo.opencollab.dev/maven-releases")
}
publishing {
// skip shadow jar from publishing. Workaround for https://github.com/johnrengelman/shadow/issues/651
val javaComponent = project.components["java"] as AdhocComponentWithVariants
javaComponent.withVariantsFromConfiguration(configurations["shadowRuntimeElements"]) { skip() }
}

View File

@@ -2,11 +2,7 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("geyser.base-conventions")
id("com.gradleup.shadow")
}
shadow {
addShadowVariantIntoJavaComponent = false
id("com.github.johnrengelman.shadow")
}
tasks {
@@ -37,4 +33,4 @@ tasks {
named("build") {
dependsOn(shadowJar)
}
}
}