Skip to content

Commit 2b3ffae

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

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
@@ -14,7 +14,7 @@ repositories {
1414
}
1515

1616
dependencies {
17-
implementation platform('run.halo.tools.platform:plugin:2.8.0-SNAPSHOT')
17+
implementation platform('run.halo.tools.platform:plugin:2.10.0-SNAPSHOT')
1818
compileOnly 'run.halo.app:api'
1919

2020
testImplementation 'run.halo.app:api'

src/main/java/run/halo/sitemap/SitemapPlugin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package run.halo.sitemap;
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
/**
88
* @author ryanwang
@@ -11,8 +11,8 @@
1111
@Component
1212
public class SitemapPlugin extends BasePlugin {
1313

14-
public SitemapPlugin(PluginWrapper wrapper) {
15-
super(wrapper);
14+
public SitemapPlugin(PluginContext pluginContext) {
15+
super(pluginContext);
1616
}
1717

1818
@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.0.2
12-
requires: ">=2.7.0"
12+
requires: ">=2.10.0"
1313
author:
1414
name: Halo OSS Team
1515
website: https://github.com/halo-dev

0 commit comments

Comments
 (0)