Files
xiaozhou233 54b476451c Feat: Add dark injector GUI
- 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
2026-11-07 19:11:06 +08:00

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'
}