mirror of
https://github.com/halo-dev/plugin-starter.git
synced 2025-10-15 15:41:46 +00:00
chore: update project infra config (#24)
### What this PR does? 更新项目配置 ```release-note None ```
This commit is contained in:
@@ -16,7 +16,7 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
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'
|
compileOnly 'run.halo.app:api'
|
||||||
|
|
||||||
testImplementation 'run.halo.app:api'
|
testImplementation 'run.halo.app:api'
|
||||||
@@ -43,3 +43,7 @@ build {
|
|||||||
// build frontend before build
|
// build frontend before build
|
||||||
tasks.getByName('compileJava').dependsOn('buildFrontend')
|
tasks.getByName('compileJava').dependsOn('buildFrontend')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
halo {
|
||||||
|
version = '2.11'
|
||||||
|
}
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
package run.halo.starter;
|
package run.halo.starter;
|
||||||
|
|
||||||
import org.pf4j.PluginWrapper;
|
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
import run.halo.app.plugin.BasePlugin;
|
import run.halo.app.plugin.BasePlugin;
|
||||||
|
import run.halo.app.plugin.PluginContext;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Plugin main class to manage the lifecycle of the plugin.</p>
|
* <p>Plugin main class to manage the lifecycle of the plugin.</p>
|
||||||
@@ -15,8 +15,8 @@ import run.halo.app.plugin.BasePlugin;
|
|||||||
@Component
|
@Component
|
||||||
public class StarterPlugin extends BasePlugin {
|
public class StarterPlugin extends BasePlugin {
|
||||||
|
|
||||||
public StarterPlugin(PluginWrapper wrapper) {
|
public StarterPlugin(PluginContext pluginContext) {
|
||||||
super(wrapper);
|
super(pluginContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user