代码拉取完成,页面将自动刷新
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.0.1"
id 'java'
}
group 'run.halo.links'
sourceCompatibility = JavaVersion.VERSION_17
repositories {
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
maven { url 'https://repo.spring.io/milestone' }
mavenCentral()
}
dependencies {
implementation platform('run.halo.tools.platform:plugin:2.15.0-SNAPSHOT')
compileOnly 'run.halo.app:api'
testImplementation 'run.halo.app:api'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
test {
useJUnitPlatform()
}
node {
pnpmVersion = '8'
nodeProjectDir = file("${project.projectDir}/console")
}
tasks.register("installDeps", PnpmTask) {
onlyIf { !file("${project.projectDir}/console/node_modules").exists() }
args = ['install']
}
tasks.register("buildFrontend", PnpmTask) {
args = ['build']
dependsOn("installDeps")
}
tasks.named("compileJava").configure {
dependsOn("buildFrontend")
}
halo {
version = '2.15'
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。