Files
halo-plugin-photos/build.gradle
T
2026-03-09 21:13:30 +08:00

55 lines
1.1 KiB
Groovy

plugins {
id "com.github.node-gradle.node" version "5.0.0"
id "run.halo.plugin.devtools" version "0.0.9"
id "io.freefair.lombok" version "8.13.1"
id 'java'
}
group 'run.halo.photos'
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
repositories {
mavenCentral()
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
}
dependencies {
implementation platform('run.halo.tools.platform:plugin:2.17.0-SNAPSHOT')
compileOnly 'run.halo.app:api'
testImplementation 'run.halo.app:api'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
test {
useJUnitPlatform()
}
node {
nodeProjectDir = file("${project.projectDir}/console")
}
tasks.register('installDepsForUI', PnpmTask) {
args = ['install']
}
tasks.register('buildFrontend', PnpmTask) {
args = ['build']
dependsOn('installDepsForUI')
}
build {
tasks.named('compileJava').configure {
dependsOn('buildFrontend')
}
}
halo {
version = '2.21.0-beta.2'
debug = true
}