From 9c332d4567824fd2a7a24408ee49df13d44d425f Mon Sep 17 00:00:00 2001 From: guqing <38999863+guqing@users.noreply.github.com> Date: Wed, 3 Jul 2024 11:01:28 +0800 Subject: [PATCH] chore: remove deprecated plugin wrapper (#31) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### What this PR does? 移除对已过时的 PluginWrapper 的引用 see also https://github.com/halo-dev/halo/pull/6243 ```release-note None ``` --- build.gradle | 2 +- src/main/java/run/halo/feed/FeedPlugin.java | 6 +++--- src/main/resources/plugin.yaml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index f2044df..3bfc5ce 100644 --- a/build.gradle +++ b/build.gradle @@ -21,7 +21,7 @@ dependencies { exclude group: 'org.apache.commons', module: 'commons-lang3' } - implementation platform('run.halo.tools.platform:plugin:2.9.0-SNAPSHOT') + implementation platform('run.halo.tools.platform:plugin:2.10.0-SNAPSHOT') compileOnly 'run.halo.app:api' testImplementation 'run.halo.app:api' diff --git a/src/main/java/run/halo/feed/FeedPlugin.java b/src/main/java/run/halo/feed/FeedPlugin.java index 07d92b0..5020db3 100644 --- a/src/main/java/run/halo/feed/FeedPlugin.java +++ b/src/main/java/run/halo/feed/FeedPlugin.java @@ -1,14 +1,14 @@ package run.halo.feed; -import org.pf4j.PluginWrapper; import org.springframework.stereotype.Component; import run.halo.app.plugin.BasePlugin; +import run.halo.app.plugin.PluginContext; @Component public class FeedPlugin extends BasePlugin { - public FeedPlugin(PluginWrapper wrapper) { - super(wrapper); + public FeedPlugin(PluginContext pluginContext) { + super(pluginContext); } @Override diff --git a/src/main/resources/plugin.yaml b/src/main/resources/plugin.yaml index d960521..c312d59 100644 --- a/src/main/resources/plugin.yaml +++ b/src/main/resources/plugin.yaml @@ -9,7 +9,7 @@ metadata: spec: enabled: true version: 1.1.1 - requires: ">=2.7.0" + requires: ">=2.10.0" author: name: Halo website: https://github.com/halo-dev