Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-14 12:00:08 +01:00
fa441f1c7b
* Add ConnectionRequestEvent and implement it * Add debug message and use InetSocketAddress instead of string * Provide both proxy and real client ip And add some minor javadocs * Make ProxyIp nullable * Apply changes from pr Co-authored-by: rtm516 <rtm516@users.noreply.github.com> * Apply changes from pr Co-authored-by: rtm516 <rtm516@users.noreply.github.com> * Apply changes from pr Co-authored-by: rtm516 <rtm516@users.noreply.github.com> * Bump API version * Dont JiJ common on mod platforms --------- Co-authored-by: rtm516 <rtm516@users.noreply.github.com> Co-authored-by: Kas-tle <26531652+Kas-tle@users.noreply.github.com>
56 Zeilen
1.3 KiB
Plaintext
56 Zeilen
1.3 KiB
Plaintext
plugins {
|
|
application
|
|
}
|
|
|
|
// This is provided by "org.cloudburstmc.math.mutable" too, so yeet.
|
|
// NeoForge's class loader is *really* annoying.
|
|
provided("org.cloudburstmc.math", "api")
|
|
|
|
architectury {
|
|
platformSetupLoomIde()
|
|
neoForge()
|
|
}
|
|
|
|
val includeTransitive: Configuration = configurations.getByName("includeTransitive")
|
|
|
|
dependencies {
|
|
// See https://github.com/google/guava/issues/6618
|
|
modules {
|
|
module("com.google.guava:listenablefuture") {
|
|
replacedBy("com.google.guava:guava", "listenablefuture is part of guava")
|
|
}
|
|
}
|
|
|
|
neoForge(libs.neoforge.minecraft)
|
|
|
|
api(project(":mod", configuration = "namedElements"))
|
|
shadow(project(path = ":mod", configuration = "transformProductionNeoForge")) {
|
|
isTransitive = false
|
|
}
|
|
shadow(projects.core) { isTransitive = false }
|
|
|
|
// Let's shade in our own api
|
|
shadow(projects.api) { isTransitive = false }
|
|
shadow(projects.common) { isTransitive = false }
|
|
|
|
// Include all transitive deps of core via JiJ
|
|
includeTransitive(projects.core)
|
|
}
|
|
|
|
application {
|
|
mainClass.set("org.geysermc.geyser.platform.forge.GeyserNeoForgeMain")
|
|
}
|
|
|
|
tasks {
|
|
remapJar {
|
|
archiveBaseName.set("Geyser-NeoForge")
|
|
}
|
|
|
|
remapModrinthJar {
|
|
archiveBaseName.set("geyser-neoforge")
|
|
}
|
|
}
|
|
|
|
modrinth {
|
|
loaders.add("neoforge")
|
|
} |