From 94f097840b1b59e8694ccc67c174e60bc371df2a Mon Sep 17 00:00:00 2001 From: li-guohao <46225881+li-guohao@users.noreply.github.com> Date: Fri, 23 Jun 2023 07:20:51 +0800 Subject: [PATCH] fix: run issue (#347) --- server/build.gradle | 1 + .../ikaros/server/plugin/listener/PluginDatabaseUtils.java | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/server/build.gradle b/server/build.gradle index e07ab4222..8feec89e8 100644 --- a/server/build.gradle +++ b/server/build.gradle @@ -63,6 +63,7 @@ dependencies { // 针对插件RestTemplate的支持 implementation 'org.apache.httpcomponents.client5:httpclient5:5.2.1' + implementation 'org.json:json:20230227' developmentOnly 'org.springframework.boot:spring-boot-devtools' diff --git a/server/src/main/java/run/ikaros/server/plugin/listener/PluginDatabaseUtils.java b/server/src/main/java/run/ikaros/server/plugin/listener/PluginDatabaseUtils.java index 0c4776b97..078d6ba20 100644 --- a/server/src/main/java/run/ikaros/server/plugin/listener/PluginDatabaseUtils.java +++ b/server/src/main/java/run/ikaros/server/plugin/listener/PluginDatabaseUtils.java @@ -5,12 +5,12 @@ import java.util.Map; import java.util.Objects; import lombok.extern.slf4j.Slf4j; +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; import org.pf4j.PluginDependency; import org.pf4j.PluginDescriptor; import org.pf4j.PluginWrapper; -import org.springframework.boot.configurationprocessor.json.JSONArray; -import org.springframework.boot.configurationprocessor.json.JSONException; -import org.springframework.boot.configurationprocessor.json.JSONObject; import org.springframework.util.Assert; import reactor.core.publisher.Mono; import reactor.core.scheduler.Schedulers;