mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-20 23:39:22 +00:00
Update gradle to 9.2.0
This commit is contained in:
@@ -11,7 +11,7 @@ tasks {
|
|||||||
"id" to "geyser",
|
"id" to "geyser",
|
||||||
"name" to "Geyser",
|
"name" to "Geyser",
|
||||||
"version" to project.version,
|
"version" to project.version,
|
||||||
"description" to project.description,
|
"description" to project.description as String,
|
||||||
"url" to "https://geysermc.org",
|
"url" to "https://geysermc.org",
|
||||||
"author" to "GeyserMC"
|
"author" to "GeyserMC"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,9 +7,3 @@ indra {
|
|||||||
publishSnapshotsTo("geysermc", "https://repo.opencollab.dev/maven-snapshots")
|
publishSnapshotsTo("geysermc", "https://repo.opencollab.dev/maven-snapshots")
|
||||||
publishReleasesTo("geysermc", "https://repo.opencollab.dev/maven-releases")
|
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() }
|
|
||||||
}
|
|
||||||
@@ -2,7 +2,11 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("geyser.base-conventions")
|
id("geyser.base-conventions")
|
||||||
id("com.github.johnrengelman.shadow")
|
id("com.gradleup.shadow")
|
||||||
|
}
|
||||||
|
|
||||||
|
shadow {
|
||||||
|
addShadowVariantIntoJavaComponent = false
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
@@ -33,4 +37,4 @@ tasks {
|
|||||||
named("build") {
|
named("build") {
|
||||||
dependsOn(shadowJar)
|
dependsOn(shadowJar)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,8 +59,10 @@ dependencies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Test
|
// Test
|
||||||
|
testImplementation(platform("org.junit:junit-bom:6.0.0"))
|
||||||
testImplementation(libs.junit)
|
testImplementation(libs.junit)
|
||||||
testImplementation(libs.mockito)
|
testImplementation(libs.mockito)
|
||||||
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
||||||
|
|
||||||
// Annotation Processors
|
// Annotation Processors
|
||||||
compileOnly(projects.ap)
|
compileOnly(projects.ap)
|
||||||
@@ -108,7 +110,7 @@ fun isDevBuild(branch: String, repository: String): Boolean {
|
|||||||
return branch != "master" || repository.equals("https://github.com/GeyserMC/Geyser", ignoreCase = true).not()
|
return branch != "master" || repository.equals("https://github.com/GeyserMC/Geyser", ignoreCase = true).not()
|
||||||
}
|
}
|
||||||
|
|
||||||
inner class GitInfo {
|
class GitInfo {
|
||||||
val branch: String
|
val branch: String
|
||||||
val commit: String
|
val commit: String
|
||||||
val commitAbbrev: String
|
val commitAbbrev: String
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ minecraftauth = "4.1.1"
|
|||||||
mcprotocollib = "1.21.9-20251026.124736-17"
|
mcprotocollib = "1.21.9-20251026.124736-17"
|
||||||
adventure = "4.25.0"
|
adventure = "4.25.0"
|
||||||
adventure-platform = "4.4.1"
|
adventure-platform = "4.4.1"
|
||||||
junit = "5.9.2"
|
junit = "6.0.0"
|
||||||
checkerframework = "3.19.0"
|
checkerframework = "3.19.0"
|
||||||
log4j = "2.20.0"
|
log4j = "2.20.0"
|
||||||
jline = "3.21.0"
|
jline = "3.21.0"
|
||||||
@@ -47,7 +47,7 @@ runvelocityversion = "3.4.0-SNAPSHOT"
|
|||||||
|
|
||||||
# plugin versions
|
# plugin versions
|
||||||
indra = "3.1.3"
|
indra = "3.1.3"
|
||||||
shadow = "8.1.1"
|
shadow = "9.2.2"
|
||||||
architectury-plugin = "3.4-SNAPSHOT"
|
architectury-plugin = "3.4-SNAPSHOT"
|
||||||
architectury-loom = "1.11-SNAPSHOT"
|
architectury-loom = "1.11-SNAPSHOT"
|
||||||
minotaur = "2.8.7"
|
minotaur = "2.8.7"
|
||||||
@@ -149,7 +149,7 @@ mockito = { module = "org.mockito:mockito-core", version.ref = "mockito" }
|
|||||||
# plugins
|
# plugins
|
||||||
lombok = { group = "io.freefair.gradle", name = "lombok-plugin", version.ref = "lombok" }
|
lombok = { group = "io.freefair.gradle", name = "lombok-plugin", version.ref = "lombok" }
|
||||||
indra = { group = "net.kyori", name = "indra-common", version.ref = "indra" }
|
indra = { group = "net.kyori", name = "indra-common", version.ref = "indra" }
|
||||||
shadow = { group = "com.github.johnrengelman", name = "shadow", version.ref = "shadow" }
|
shadow = { group = "com.gradleup.shadow", name = "com.gradleup.shadow.gradle.plugin", version.ref = "shadow" }
|
||||||
architectury-plugin = { group = "architectury-plugin", name = "architectury-plugin.gradle.plugin", version.ref = "architectury-plugin" }
|
architectury-plugin = { group = "architectury-plugin", name = "architectury-plugin.gradle.plugin", version.ref = "architectury-plugin" }
|
||||||
architectury-loom = { group = "dev.architectury.loom", name = "dev.architectury.loom.gradle.plugin", version.ref = "architectury-loom" }
|
architectury-loom = { group = "dev.architectury.loom", name = "dev.architectury.loom.gradle.plugin", version.ref = "architectury-loom" }
|
||||||
minotaur = { group = "com.modrinth.minotaur", name = "Minotaur", version.ref = "minotaur" }
|
minotaur = { group = "com.modrinth.minotaur", name = "Minotaur", version.ref = "minotaur" }
|
||||||
|
|||||||
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
Reference in New Issue
Block a user