Skip to content

Commit

Permalink
chore: remove deprecated plugin wrapper (#11)
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
ruibaby authored Jul 5, 2024
1 parent b39dd38 commit 18ad616
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'java'
id "com.github.node-gradle.node" version "5.0.0"
id "io.freefair.lombok" version "8.0.1"
id "run.halo.plugin.devtools" version "0.0.6"
id "run.halo.plugin.devtools" version "0.0.9"
}

group 'run.halo.stackedit'
Expand All @@ -16,7 +16,7 @@ repositories {
}

dependencies {
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'
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/run/halo/stackedit/StackEditPlugin.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package run.halo.stackedit;

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 +12,8 @@
@Component
public class StackEditPlugin extends BasePlugin {

public StackEditPlugin(PluginWrapper wrapper) {
super(wrapper);
public StackEditPlugin(PluginContext context) {
super(context);
}

@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 @@ -4,7 +4,7 @@ metadata:
name: PluginStackEdit
spec:
enabled: true
requires: ">=2.1.0"
requires: ">=2.10.0"
author:
name: Halo OSS Team
website: https://github.com/halo-dev
Expand Down

0 comments on commit 18ad616

Please sign in to comment.