Skip to content

Commit

Permalink
chore: cleanup deprecated constructor for base plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Wang <[email protected]>
  • Loading branch information
ruibaby committed Jul 5, 2024
1 parent 6c698be commit d3c7b1a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,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
17 changes: 4 additions & 13 deletions src/main/java/run/halo/bytemd/BytemdPlugin.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package run.halo.bytemd;

import org.pf4j.PluginWrapper;
import org.springframework.stereotype.Component;
import run.halo.app.extension.Scheme;
import run.halo.app.extension.SchemeManager;

import run.halo.app.plugin.BasePlugin;
import run.halo.app.plugin.PluginContext;

/**
* @author ryanwang
Expand All @@ -13,15 +12,7 @@
@Component
public class BytemdPlugin extends BasePlugin {

public BytemdPlugin(PluginWrapper wrapper) {
super(wrapper);
}

@Override
public void start() {
}

@Override
public void stop() {
public BytemdPlugin(PluginContext context) {
super(context);
}
}
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
spec:
enabled: true
version: 1.1.1
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 d3c7b1a

Please sign in to comment.