mirror of
https://github.com/xiaozhou233/OrangeX-Client.git
synced 2026-12-05 21:15:53 +08:00
- Remove Loader from settings.gradle, build.gradle, and .idea/gradle.xml - Update config.toml JarPath from Loader.jar to OrangeX.jar - Set Java 8 compatibility in OrangeX build.gradle - Clean up Loader.java imports and remove Detector call
44 lines
1.3 KiB
Groovy
44 lines
1.3 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id "com.gradleup.shadow" version "8.3.9"
|
|
}
|
|
|
|
group = 'cn.xiaozhou233.orangex'
|
|
version = 'unspecified'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("org.projectlombok:lombok:1.18.46")
|
|
annotationProcessor("org.projectlombok:lombok:1.18.46")
|
|
|
|
compileOnly fileTree(dir: "../libraries", include: ["**/*.jar"])
|
|
|
|
implementation files("../libraries/ymixin.jar")
|
|
// https://mvnrepository.com/artifact/org.ow2.asm/asm-tree
|
|
implementation("org.ow2.asm:asm-tree:9.8")
|
|
// https://mvnrepository.com/artifact/org.ow2.asm/asm-tree
|
|
implementation("org.ow2.asm:asm:9.8")
|
|
// Source: https://mvnrepository.com/artifact/org.greenrobot/eventbus
|
|
implementation 'org.greenrobot:eventbus:3.1.1'
|
|
// Source: https://mvnrepository.com/artifact/com.google.code.gson/gson
|
|
implementation 'com.google.code.gson:gson:2.13.2'
|
|
}
|
|
|
|
shadowJar {
|
|
archiveFileName = 'OrangeX.jar'
|
|
relocate 'org.objectweb.asm', 'cn.xiaozhou233.asm9'
|
|
relocate 'com.google.gson', "cn.xiaozhou233.gson"
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
// JNI Header Build
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.headerOutputDirectory.set(file("../OrangeX-Native/includes"))
|
|
} |