diff --git a/build.gradle b/build.gradle index 1dc08fc..27fec1c 100644 --- a/build.gradle +++ b/build.gradle @@ -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' diff --git a/src/main/java/run/halo/sitemap/SitemapPlugin.java b/src/main/java/run/halo/sitemap/SitemapPlugin.java index e44a160..664e52a 100644 --- a/src/main/java/run/halo/sitemap/SitemapPlugin.java +++ b/src/main/java/run/halo/sitemap/SitemapPlugin.java @@ -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 @@ -11,8 +11,8 @@ @Component public class SitemapPlugin extends BasePlugin { - public SitemapPlugin(PluginWrapper wrapper) { - super(wrapper); + public SitemapPlugin(PluginContext pluginContext) { + super(pluginContext); } @Override diff --git a/src/main/resources/plugin.yaml b/src/main/resources/plugin.yaml index 76a3dd8..504661c 100644 --- a/src/main/resources/plugin.yaml +++ b/src/main/resources/plugin.yaml @@ -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