Files
OrangeX-Client/OrangeX/build.gradle
T
xiaozhou233 cfb0ba4a48 Feat: Add world-only rendering and empty input GUI
Gate EventRender2D on shouldRenderLevel; add cross-version empty input screens toggled with M (1.8.9 generated GuiScreen subclass, 26.2 Screen), ClientInput state and debug overlay; add 26.2 compile stubs; move LWJGL2 jar to libraries.
2026-11-07 13:34:52 +08:00

54 lines
2.0 KiB
Groovy

plugins {
id 'java'
id("com.gradleup.shadow") version "8.3.11"
}
group = 'cn.xiaozhou233.orangex'
version = 'unspecified'
repositories {
mavenCentral()
}
dependencies {
// Source: https://mvnrepository.com/artifact/org.projectlombok/lombok
compileOnly 'org.projectlombok:lombok:1.18.48'
annotationProcessor 'org.projectlombok:lombok:1.18.48'
// Source: https://mvnrepository.com/artifact/com.google.code.gson/gson
implementation 'com.google.code.gson:gson:2.15.0'
// Source: https://mvnrepository.com/artifact/org.javassist/javassist
implementation 'org.javassist:javassist:3.33.0-GA'
// Source: https://mvnrepository.com/artifact/org.greenrobot/eventbus
implementation 'org.greenrobot:eventbus:3.2.0'
// Legacy OpenGL entry points for the 1.8.9 font backend. This is compile
// only: the 1.8.9 runtime provides its own LWJGL 2, and the 26.2 backend
// never loads these classes.
compileOnly files('../libraries/lwjgl-2.9.4-nightly-20150209.jar')
// The real 26.2 client jar is Java 25 bytecode and cannot be read by the
// JDK 17 used for this build. These compile-time stubs mirror only the
// members OrangeX touches; the real jar is still the runtime reference.
compileOnly project(':Minecraft262Stubs')
// JuiceAgent is provided at runtime by the agent (see JuiceAgentBridge).
// Do NOT bundle it: Fabric's KnotClassLoader would load a second copy of
// the API whose native methods are not registered.
}
tasks.named('shadowJar') {
destinationDirectory = rootProject.layout.projectDirectory.dir('out/tmp')
archiveFileName = "${project.name}.jar"
}
shadowJar {
relocate 'com.google.gson', 'cn.xiaozhou233.orangex.shaded.gson'
// Javassist must live in OrangeX's own namespace: Forge's
// LaunchClassLoader delegates the "javassist." package to its parent,
// which cannot see the injected jar.
relocate 'javassist', 'cn.xiaozhou233.orangex.shaded.javassist'
relocate 'org.greenrobot.eventbus', 'cn.xiaozhou233.orangex.shaded.eventbus'
}