diff --git a/build.gradle b/build.gradle index 7f0839e..83d5f1b 100644 --- a/build.gradle +++ b/build.gradle @@ -15,7 +15,7 @@ repositories { } dependencies { - implementation platform('run.halo.tools.platform:plugin:2.6.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/oauth/OauthGithubPlugin.java b/src/main/java/run/halo/oauth/OauthGithubPlugin.java index ae20c46..ce4cda8 100644 --- a/src/main/java/run/halo/oauth/OauthGithubPlugin.java +++ b/src/main/java/run/halo/oauth/OauthGithubPlugin.java @@ -1,10 +1,10 @@ package run.halo.oauth; -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; /** * Oauth GitHub plugin. @@ -17,8 +17,8 @@ public class OauthGithubPlugin extends BasePlugin { private final SchemeManager schemeManager; - public OauthGithubPlugin(PluginWrapper wrapper, SchemeManager schemeManager) { - super(wrapper); + public OauthGithubPlugin(PluginContext pluginContext, SchemeManager schemeManager) { + super(pluginContext); this.schemeManager = schemeManager; } diff --git a/src/main/resources/plugin.yaml b/src/main/resources/plugin.yaml index ecbf759..283fe6f 100644 --- a/src/main/resources/plugin.yaml +++ b/src/main/resources/plugin.yaml @@ -6,7 +6,7 @@ metadata: store.halo.run/app-id: app-ESVDK spec: enabled: true - requires: ">=2.6.0" + requires: ">=2.10.0" author: name: Halo website: https://github.com/halo-dev