Skip to content

Commit

Permalink
Upgrade to Halo 2.0.0 (#2)
Browse files Browse the repository at this point in the history
* Upgrade to Halo 2.0.0
  • Loading branch information
JohnNiang authored Dec 1, 2022
1 parent 83739c7 commit 51fafec
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
with:
name: plugin-sitemap
path: |
build/libs/*-plain.jar
build/libs/*.jar
retention-days: 1

github-release:
Expand Down
26 changes: 6 additions & 20 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'
id 'io.spring.dependency-management' version '1.1.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 @@ -31,28 +25,20 @@ jar {
}
}

ext {
guava = "31.1-jre"
}
dependencies {
compileOnly "io.swagger.core.v3:swagger-core-jakarta:2.2.0"
compileOnly 'org.springframework.boot:spring-boot-starter-webflux'
compileOnly "com.google.guava:guava:$guava"
compileOnly platform('run.halo.dependencies:halo-dependencies:1.0.0')

compileOnly 'org.pf4j:pf4j:3.8.0'
compileOnly files("lib/halo-2.0.0-SNAPSHOT-plain.jar")
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 "com.google.guava:guava:$guava"
testImplementation 'org.apache.commons:commons-lang3:3.12.0'
testImplementation "com.google.guava:guava"
testImplementation 'org.apache.commons:commons-lang3'
testImplementation 'org.springframework.boot:spring-boot-starter-webflux'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'io.projectreactor:reactor-test'
testImplementation files("lib/halo-2.0.0-SNAPSHOT-plain.jar")
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
testImplementation files("lib/halo-2.0.0-plain.jar")
}

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.
8 changes: 4 additions & 4 deletions src/main/java/run/halo/sitemap/DefaultSitemapEntryLister.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;
import reactor.core.publisher.Flux;
import run.halo.app.core.extension.Category;
import run.halo.app.core.extension.Post;
import run.halo.app.core.extension.SinglePage;
import run.halo.app.core.extension.Tag;
import run.halo.app.core.extension.content.Category;
import run.halo.app.core.extension.content.Post;
import run.halo.app.core.extension.content.SinglePage;
import run.halo.app.core.extension.content.Tag;
import run.halo.app.extension.ConfigMap;
import run.halo.app.extension.ExtensionOperator;
import run.halo.app.extension.ReactiveExtensionClient;
Expand Down
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: PluginSitemap
spec:
enabled: true
version: 1.0.0-alpha.3
requires: ">=2.0.0-beta.2"
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 51fafec

Please sign in to comment.