Skip to content

Commit

Permalink
Adapt for Halo 2.0.0 (#1)
Browse files Browse the repository at this point in the history
#### What does this PR?

Upgrade Halo 2.0.0.

```release-note
None
```

/kind improvement
  • Loading branch information
JohnNiang authored Dec 1, 2022
1 parent 2ba38cc commit 431a5cf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 19 deletions.
21 changes: 5 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
plugins {
id 'org.springframework.boot' version '3.0.0-M3'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id "com.github.node-gradle.node" version "3.3.0"
id "io.github.guqing.plugin-development" version "0.0.5-SNAPSHOT"
id 'java'
Expand All @@ -14,10 +12,6 @@ repositories {
mavenCentral()
}

bootJar {
enabled = false
}

jar {
enabled = true
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
Expand All @@ -32,18 +26,13 @@ jar {
}

dependencies {
compileOnly "io.swagger.core.v3:swagger-core-jakarta:2.2.0"
compileOnly 'org.springframework.boot:spring-boot-starter-webflux'
compileOnly 'org.springframework.boot:spring-boot-starter-thymeleaf'
compileOnly 'org.pf4j:pf4j:3.6.0'

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

compileOnly platform('run.halo.dependencies:halo-dependencies:1.0.0')
compileOnly files("lib/halo-2.0.0-plain.jar")
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok:1.18.22'

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
}

test {
Expand Down
Binary file removed lib/halo-2.0.0-SNAPSHOT-plain.jar
Binary file not shown.
Binary file added lib/halo-2.0.0-plain.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/resources/console/main.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/resources/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ metadata:
name: PluginUmami
spec:
enabled: true
version: 1.0.0-alpha.1
requires: "*"
version: 1.0.0
requires: ">=2.0.0"
author:
name: Halo OSS Team
website: https://github.com/halo-dev
Expand Down

0 comments on commit 431a5cf

Please sign in to comment.