mirror of
https://github.com/halo-dev/plugin-starter.git
synced 2025-10-13 22:56:50 +00:00

* Refactor build scripts and workflows * Add a unit test sample * chore: bump @halo-dev/ui-plugin-bundler-kit version Signed-off-by: Ryan Wang <i@ryanc.cc> --------- Signed-off-by: Ryan Wang <i@ryanc.cc> Co-authored-by: Ryan Wang <i@ryanc.cc>
49 lines
1004 B
Groovy
49 lines
1004 B
Groovy
plugins {
|
|
id 'java'
|
|
id "io.freefair.lombok" version "8.13"
|
|
id "run.halo.plugin.devtools" version "0.6.0"
|
|
}
|
|
|
|
group 'run.halo.starter'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation platform('run.halo.tools.platform:plugin:2.21.0')
|
|
compileOnly 'run.halo.app:api'
|
|
|
|
testImplementation 'run.halo.app:api'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.encoding = "UTF-8"
|
|
options.release = 21
|
|
}
|
|
|
|
tasks.register('processUiResources', Copy) {
|
|
from project(':ui').tasks.named('buildFrontend')
|
|
into layout.buildDirectory.dir('resources/main/console')
|
|
}
|
|
|
|
tasks.named('processResources', ProcessResources) {
|
|
dependsOn tasks.named('processUiResources')
|
|
}
|
|
|
|
halo {
|
|
version = '2.21'
|
|
}
|