Skip to content

Commit

Permalink
chore: bump halo plugin devtools version (#9)
Browse files Browse the repository at this point in the history
- 提升 `run.halo.plugin.devtools` 插件的版本
- 升级 Gradle 的版本至 8.0

/kind improvement

```release-note
None
```
  • Loading branch information
ruibaby committed Jun 2, 2023
1 parent 6e67d4d commit 0f1a833
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 29 deletions.
33 changes: 8 additions & 25 deletions build.gradle
@@ -1,41 +1,25 @@
plugins {
id "com.github.node-gradle.node" version "3.3.0"
id "io.github.guqing.plugin-development" version "0.0.6-SNAPSHOT"
id 'java'
id "com.github.node-gradle.node" version "3.3.0"
id "run.halo.plugin.devtools" version "0.0.4"
}

group 'run.halo.search.widget'
sourceCompatibility = JavaVersion.VERSION_17

repositories {
mavenCentral()
maven { url 'https://s01.oss.sonatype.org/content/repositories/releases' }
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://repo.spring.io/milestone' }
mavenCentral()
}

jar {
enabled = true
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest.attributes(
'Plugin-Version': "${project.version}",
)
from {
configurations.runtimeClasspath.collect {
it.isDirectory() ? it : zipTree(it)
}
}
}

dependencies {
compileOnly platform("run.halo.dependencies:halo-dependencies:1.0.0")

compileOnly files("lib/halo-2.0.0-SNAPSHOT-plain.jar")

compileOnly 'org.projectlombok:lombok:1.18.22'
annotationProcessor 'org.projectlombok:lombok:1.18.22'
implementation platform('run.halo.tools.platform:plugin:2.5.0-SNAPSHOT')
compileOnly 'run.halo.app:api'

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
testImplementation 'run.halo.app:api'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

test {
Expand All @@ -59,5 +43,4 @@ task pnpmInstall(type: NpxTask) {
build {
// build frontend before build
tasks.getByName('compileJava').dependsOn('buildFrontend')
// tasks.getByName("buildFrontend").dependsOn("pnpmInstall")
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Binary file removed lib/halo-2.0.0-SNAPSHOT-plain.jar
Binary file not shown.
3 changes: 3 additions & 0 deletions packages/widget/vite.config.ts
Expand Up @@ -12,6 +12,9 @@ export default defineConfig({
vue: "vue/dist/vue.esm-bundler.js",
},
},
define: {
"process.env": process.env
},
build: {
outDir: fileURLToPath(
new URL("../../src/main/resources/static", import.meta.url)
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
@@ -1,6 +1,6 @@
pluginManagement {
repositories {
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
maven { url 'https://s01.oss.sonatype.org/content/repositories/releases' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
maven { url 'https://maven.aliyun.com/repository/spring-plugin' }
maven { url 'https://repo.spring.io/milestone' }
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/plugin.yaml
Expand Up @@ -4,8 +4,7 @@ metadata:
name: PluginSearchWidget
spec:
enabled: true
version: 1.0.0
requires: ">=2.0.0"
requires: ">=2.5.0"
author:
name: Halo OSS Team
website: https://github.com/halo-dev
Expand Down

0 comments on commit 0f1a833

Please sign in to comment.