From 6f7d9367cf476347b1ba7e3f5b37bd3529b2f4d0 Mon Sep 17 00:00:00 2001 From: guqing <38999863+guqing@users.noreply.github.com> Date: Tue, 30 Jan 2024 16:54:14 +0800 Subject: [PATCH] chore: update project infra config (#24) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### What this PR does? 更新项目配置 ```release-note None ``` --- build.gradle | 6 +++++- src/main/java/run/halo/starter/StarterPlugin.java | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 48c086c..2d4b751 100644 --- a/build.gradle +++ b/build.gradle @@ -16,7 +16,7 @@ repositories { } dependencies { - implementation platform('run.halo.tools.platform:plugin:2.6.0-SNAPSHOT') + implementation platform('run.halo.tools.platform:plugin:2.11.0-SNAPSHOT') compileOnly 'run.halo.app:api' testImplementation 'run.halo.app:api' @@ -43,3 +43,7 @@ build { // build frontend before build tasks.getByName('compileJava').dependsOn('buildFrontend') } + +halo { + version = '2.11' +} diff --git a/src/main/java/run/halo/starter/StarterPlugin.java b/src/main/java/run/halo/starter/StarterPlugin.java index e123358..f8c3eb5 100644 --- a/src/main/java/run/halo/starter/StarterPlugin.java +++ b/src/main/java/run/halo/starter/StarterPlugin.java @@ -1,8 +1,8 @@ package run.halo.starter; -import org.pf4j.PluginWrapper; import org.springframework.stereotype.Component; import run.halo.app.plugin.BasePlugin; +import run.halo.app.plugin.PluginContext; /** *

Plugin main class to manage the lifecycle of the plugin.

@@ -15,8 +15,8 @@ @Component public class StarterPlugin extends BasePlugin { - public StarterPlugin(PluginWrapper wrapper) { - super(wrapper); + public StarterPlugin(PluginContext pluginContext) { + super(pluginContext); } @Override