chore: update project infra config (#24)

### What this PR does?
更新项目配置

```release-note
None
```
This commit is contained in:
guqing
2024-01-30 16:54:14 +08:00
committed by GitHub
parent 1182e9497d
commit 6f7d9367cf
2 changed files with 8 additions and 4 deletions

View File

@@ -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'
}

View File

@@ -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;
/**
* <p>Plugin main class to manage the lifecycle of the plugin.</p>
@@ -15,8 +15,8 @@ import run.halo.app.plugin.BasePlugin;
@Component
public class StarterPlugin extends BasePlugin {
public StarterPlugin(PluginWrapper wrapper) {
super(wrapper);
public StarterPlugin(PluginContext pluginContext) {
super(pluginContext);
}
@Override