Skip to content

Commit 339f72d

Browse files
authored
chore: add halo plugin devtools dependency (#11)
* chore: add halo plugin devtools dependency * refacto: upgrade devtools
1 parent b82aa93 commit 339f72d

3 files changed

Lines changed: 2 additions & 15 deletions

File tree

build.gradle

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
id 'java'
33
id "com.github.node-gradle.node" version "3.3.0"
44
id "io.freefair.lombok" version "8.0.1"
5-
id "io.github.guqing.plugin-development" version "0.0.6-SNAPSHOT"
5+
id "run.halo.plugin.devtools" version "0.0.3"
66
}
77

88
group 'run.halo.starter'
@@ -15,17 +15,6 @@ repositories {
1515
maven { url 'https://repo.spring.io/milestone' }
1616
}
1717

18-
jar {
19-
enabled = true
20-
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
21-
manifest.attributes('Plugin-Version': "${project.version}",)
22-
from {
23-
configurations.runtimeClasspath.collect {
24-
it.isDirectory() ? it : zipTree(it)
25-
}
26-
}
27-
}
28-
2918
dependencies {
3019
implementation platform('run.halo.tools.platform:plugin:2.5.0-SNAPSHOT')
3120
compileOnly 'run.halo.app:api'

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pluginManagement {
22
repositories {
3-
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
3+
maven { url 'https://s01.oss.sonatype.org/content/repositories/releases' }
44
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
55
maven { url 'https://maven.aliyun.com/repository/spring-plugin' }
66
maven { url 'https://repo.spring.io/milestone' }

src/main/resources/plugin.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ metadata:
55
name: PluginStarter
66
spec:
77
enabled: true
8-
# 'version' is a valid semantic version string (see semver.org).
9-
version: 1.0.0-SNAPSHOT
108
requires: ">=2.5.0"
119
author:
1210
name: Halo OSS Team

0 commit comments

Comments
 (0)