Skip to content

Commit

Permalink
chore: remove deprecated plugin wrapper (#33)
Browse files Browse the repository at this point in the history
### What this PR does?
移除对已过时的 PluginWrapper 的引用

see also halo-dev/halo#6243

```release-note
None
```
  • Loading branch information
guqing authored Jul 2, 2024
1 parent d02b020 commit 2b3ffae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repositories {
}

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

testImplementation 'run.halo.app:api'
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/run/halo/sitemap/SitemapPlugin.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package run.halo.sitemap;

import org.pf4j.PluginWrapper;
import org.springframework.stereotype.Component;
import run.halo.app.plugin.BasePlugin;
import run.halo.app.plugin.PluginContext;

/**
* @author ryanwang
Expand All @@ -11,8 +11,8 @@
@Component
public class SitemapPlugin extends BasePlugin {

public SitemapPlugin(PluginWrapper wrapper) {
super(wrapper);
public SitemapPlugin(PluginContext pluginContext) {
super(pluginContext);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
spec:
enabled: true
version: 1.0.2
requires: ">=2.7.0"
requires: ">=2.10.0"
author:
name: Halo OSS Team
website: https://github.com/halo-dev
Expand Down

0 comments on commit 2b3ffae

Please sign in to comment.