mirror of
https://github.com/xiaozhou233/OrangeX-Client.git
synced 2026-12-05 13:05:52 +08:00
- Replace the console selection with a FlatDarkLaf Swing window - List detected Minecraft windows, support a hidden custom PID input and refresh - Run injection on a background thread and report the result in the status label - Bundle FlatLaf into injector.jar so the packaged GUI runs standalone
41 lines
1023 B
Groovy
41 lines
1023 B
Groovy
plugins {
|
|
id 'java'
|
|
}
|
|
|
|
group = 'cn.xiaozhou233.orangex.injector'
|
|
version = 'unspecified'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation platform('org.junit:junit-bom:5.10.0')
|
|
testImplementation 'org.junit.jupiter:junit-jupiter'
|
|
|
|
// Source: https://mvnrepository.com/artifact/com.formdev/flatlaf
|
|
implementation 'com.formdev:flatlaf:3.8'
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
tasks.named('jar') {
|
|
destinationDirectory = rootProject.layout.projectDirectory.dir('out')
|
|
archiveFileName = 'injector.jar'
|
|
manifest {
|
|
attributes 'Main-Class': 'cn.xiaozhou233.orangex.injector.Main'
|
|
}
|
|
// Bundle runtime dependencies (FlatLaf) so injector.jar is self-contained.
|
|
from {
|
|
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
|
}
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
exclude 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA'
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.encoding = 'UTF-8'
|
|
}
|