feat(plugin): 添加 Python 插件支持

- 新增 PluginPyLoader 类实现 Python 插件加载- 添加 PythonResult 类封装 Python执行结果
- 实现 RunPython 工具类用于执行 Python脚本
- 新增 PyLocalSide 类提供 Python 脚本调用本地方法的接口- 修改主程序启动逻辑,支持 Python 插件初始化
- 更新插件注册设置项,兼容 Python 插件
This commit is contained in:
tzdwindows 7
2025-02-22 15:53:32 +08:00
parent 701dfcfb47
commit ce996b73be
15 changed files with 707 additions and 46 deletions

View File

@@ -15,10 +15,17 @@ group = 'com.axis.innovators.box'
version = '0.0.1'
repositories {
mavenLocal()
maven { url "https://maven.aliyun.com/repository/public" }
maven { setUrl("https://maven.aliyun.com/repository/central") }
maven { setUrl("https://maven.aliyun.com/repository/jcenter") }
maven { setUrl("https://maven.aliyun.com/repository/google") }
maven { setUrl("https://maven.aliyun.com/repository/gradle-plugin") }
maven { setUrl("https://maven.aliyun.com/repository/public") }
maven { setUrl("https://jitpack.io") }
maven { setUrl("https://maven.aliyun.com/nexus/content/groups/public/") }
maven { setUrl("https://maven.aliyun.com/nexus/content/repositories/jcenter") }
gradlePluginPortal()
google()
mavenCentral()
jcenter()
}
dependencies {
@@ -48,6 +55,10 @@ dependencies {
implementation 'com.formdev:flatlaf:3.2.1' // FlatLaf核心
implementation 'com.formdev:flatlaf-extras:3.2.1' // 扩展组件
implementation 'com.formdev:flatlaf-intellij-themes:3.2.1' // 官方主题包
implementation 'org.python:jython-standalone:2.7.3'
implementation 'com.google.code.gson:gson:2.10.1'
}
// 分离依赖项到 libs 目录