Skip to content

Commit

Permalink
初始化插件配置
Browse files Browse the repository at this point in the history
  • Loading branch information
wenjing-xin committed Jun 15, 2024
1 parent fceaada commit f2a20d8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
id "run.halo.plugin.devtools" version "0.0.9"
}

group 'xin.wenjing.MultipleContentShow'
group 'xin.wenjing.blogHao'
sourceCompatibility = JavaVersion.VERSION_17

repositories {
Expand All @@ -16,7 +16,7 @@ repositories {
}

dependencies {
implementation platform('run.halo.tools.platform:plugin:2.11.0-SNAPSHOT')
implementation platform('run.halo.tools.platform:plugin:2.14.0-SNAPSHOT')
compileOnly 'run.halo.app:api'

testImplementation 'run.halo.app:api'
Expand Down Expand Up @@ -52,5 +52,5 @@ build {
}

halo {
version = '2.11'
version = '2.14.0'
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=1.0.0-SNAPSHOT
version=1.0.0-rc1
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ pluginManagement {
gradlePluginPortal()
}
}
rootProject.name = 'plugin-multiple-content-show'
rootProject.name = 'plugin-blog-hao'

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package run.halo.starter;
package xin.wenjing.blogHao;

import org.springframework.stereotype.Component;
import run.halo.app.plugin.BasePlugin;
Expand All @@ -13,9 +13,9 @@
* @since 1.0.0
*/
@Component
public class StarterPlugin extends BasePlugin {
public class BlogHaoPlugin extends BasePlugin {

public StarterPlugin(PluginContext pluginContext) {
public BlogHaoPlugin(PluginContext pluginContext) {
super(pluginContext);
}

Expand Down
15 changes: 6 additions & 9 deletions src/main/resources/plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
# Refer https://docs.halo.run/developer-guide/plugin/basics/manifest

apiVersion: plugin.halo.run/v1alpha1
kind: Plugin
metadata:
# The name defines how the plugin is invoked, A unique name
name: starter
name: plugin-blog-hao
spec:
enabled: true
requires: ">=2.11.0"
requires: ">=2.14.0"
author:
name: Halo
website: https://github.com/halo-dev
name: dreamChaser的小屋
website: https://wenjing.xin
logo: logo.png
homepage: https://github.com/halo-dev/plugin-starter#readme
repo: https://github.com/halo-dev/plugin-starter
issues: https://github.com/halo-dev/plugin-starter/issues
displayName: "插件快速开始模板"
description: "这是一个插件快速开始模板"
displayName: "blog-hao"
description: "让你的博客变得更好"
license:
- name: "GPL-3.0"
url: "https://github.com/halo-dev/plugin-starter/blob/main/LICENSE"

0 comments on commit f2a20d8

Please sign in to comment.