feat(box): 现代化用户界面并添加 jar 文件预览功能
- 使用 FlatDarculaLaf 样式库替换默认样式 - 添加 jar 文件预览功能,使用 CFR 进行反编译 - 更新 build.gradle 文件,添加新依赖项 - 新增 CFROutputSinkFactory 和 JarClassFileSource 类 - 修改主程序启动逻辑,支持 jar 文件预览
This commit is contained in:
25
build.gradle
25
build.gradle
@@ -2,6 +2,7 @@ plugins {
|
||||
id 'java'
|
||||
id 'application'
|
||||
id 'edu.sc.seis.launch4j' version '2.5.4'
|
||||
id 'org.openjfx.javafxplugin' version '0.1.0'
|
||||
}
|
||||
|
||||
// JDK 版本检查
|
||||
@@ -58,7 +59,23 @@ dependencies {
|
||||
|
||||
implementation 'org.python:jython-standalone:2.7.3'
|
||||
|
||||
implementation 'org.fxmisc.richtext:richtextfx:0.11.0' // 更新后的richtextfx
|
||||
implementation 'org.bitbucket.mstrobel:procyon-core:0.5.36' // 使用JitPack版本
|
||||
implementation 'org.bitbucket.mstrobel:procyon-compilertools:0.5.36'
|
||||
|
||||
implementation 'com.fifesoft:rsyntaxtextarea:3.3.0'
|
||||
implementation 'org.apache.commons:commons-compress:1.23.0'
|
||||
implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.2'
|
||||
implementation 'org.controlsfx:controlsfx:11.1.2' // 现代化UI组件
|
||||
implementation 'com.dlsc.formsfx:formsfx-core:11.6.0' // 表单组件
|
||||
implementation 'net.sourceforge.plantuml:plantuml:8059' // UML支持(可选)
|
||||
|
||||
implementation 'com.google.code.gson:gson:2.10.1'
|
||||
|
||||
implementation 'org.openjfx:javafx-controls:21'
|
||||
implementation 'org.benf:cfr:0.152'
|
||||
|
||||
implementation 'com.github.javaparser:javaparser-core:3.25.1'
|
||||
}
|
||||
|
||||
// 分离依赖项到 libs 目录
|
||||
@@ -108,6 +125,11 @@ tasks.withType(JavaExec).configureEach {
|
||||
]
|
||||
}
|
||||
|
||||
javafx {
|
||||
version = "21"
|
||||
modules = [ 'javafx.controls', 'javafx.fxml' ]
|
||||
}
|
||||
|
||||
// 单独打包文档
|
||||
task packageOpenSourceDocs(type: Jar) {
|
||||
archiveClassifier = 'docs'
|
||||
@@ -122,7 +144,8 @@ application {
|
||||
// 确保运行时参数生效
|
||||
applicationDefaultJvmArgs = [
|
||||
"-Djava.system.class.loader=com.axis.innovators.box.plugins.BoxClassLoader",
|
||||
"-Dloader.library.path=$buildDir/libs/libs"
|
||||
"-Dloader.library.path=$buildDir/libs/libs",
|
||||
'-Dfile.encoding=UTF-8'
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user