Skip to content

Commit 9c332d4

Browse files
authored
chore: remove deprecated plugin wrapper (#31)
### What this PR does? 移除对已过时的 PluginWrapper 的引用 see also halo-dev/halo#6243 ```release-note None ```
1 parent 59a11da commit 9c332d4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies {
2121
exclude group: 'org.apache.commons', module: 'commons-lang3'
2222
}
2323

24-
implementation platform('run.halo.tools.platform:plugin:2.9.0-SNAPSHOT')
24+
implementation platform('run.halo.tools.platform:plugin:2.10.0-SNAPSHOT')
2525
compileOnly 'run.halo.app:api'
2626

2727
testImplementation 'run.halo.app:api'

src/main/java/run/halo/feed/FeedPlugin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package run.halo.feed;
22

3-
import org.pf4j.PluginWrapper;
43
import org.springframework.stereotype.Component;
54
import run.halo.app.plugin.BasePlugin;
5+
import run.halo.app.plugin.PluginContext;
66

77
@Component
88
public class FeedPlugin extends BasePlugin {
99

10-
public FeedPlugin(PluginWrapper wrapper) {
11-
super(wrapper);
10+
public FeedPlugin(PluginContext pluginContext) {
11+
super(pluginContext);
1212
}
1313

1414
@Override

src/main/resources/plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ metadata:
99
spec:
1010
enabled: true
1111
version: 1.1.1
12-
requires: ">=2.7.0"
12+
requires: ">=2.10.0"
1313
author:
1414
name: Halo
1515
website: https://github.com/halo-dev

0 commit comments

Comments
 (0)