Files
OrangeX-Client/Loader/build.gradle
T
xiaozhou233 60baa8d1ef Refactor: Detect Minecraft runtime in Loader
- Add runtime detection package for class loader, loader type and version
- Probe vanilla, Forge, NeoForge, Fabric and MCP installations
- Read 26.x versions from version.json and support Forge version lookups
- Unify structural probing in MinecraftProbe and use the game class loader for reflection
- Shade gson into the loader jar under a relocated package
- Restore OrangeX injection using the detected class loader
2026-10-27 20:12:31 +08:00

32 lines
829 B
Groovy

plugins {
id 'java'
id("com.gradleup.shadow") version "8.3.11"
}
group = 'cn.xiaozhou233.orangex.injector'
version = 'unspecified'
repositories {
mavenCentral()
}
dependencies {
implementation files("../libraries/JuiceAgent-API-1.4.1+build.1.jar")
// 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'
}
tasks.named('shadowJar') {
destinationDirectory = rootProject.layout.projectDirectory.dir('out/tmp')
archiveFileName = "${project.name}.jar"
}
shadowJar {
relocate 'com.google.gson', 'cn.xiaozhou233.orangex.loader.shaded.gson'
}