aa4befa0ff
- 下载资源管理与 /download/{slug} 下载链接
- 下载统计(次数/去重人数/明细/CSV 导出)
- 按资源邮箱验证(Halo 通知中心发信,互认评论插件已验证邮箱)
- 本地附件防直链(/upload/** 404)
- 文章引用扫描
- Console 前端:Vue3 + ui-plugin-bundler-kit
45 lines
950 B
Groovy
45 lines
950 B
Groovy
plugins {
|
||
id 'java'
|
||
id "io.freefair.lombok" version "8.14"
|
||
id "run.halo.plugin.devtools" version "0.6.2"
|
||
}
|
||
|
||
group 'run.halo.sharelink'
|
||
|
||
java {
|
||
toolchain {
|
||
languageVersion = JavaLanguageVersion.of(21)
|
||
}
|
||
}
|
||
|
||
tasks.withType(JavaCompile).configureEach {
|
||
options.encoding = "UTF-8"
|
||
options.release = 21
|
||
}
|
||
|
||
repositories {
|
||
mavenCentral()
|
||
}
|
||
|
||
dependencies {
|
||
implementation platform('run.halo.tools.platform:plugin:2.21.0')
|
||
compileOnly 'run.halo.app:api'
|
||
|
||
implementation 'com.google.guava:guava:33.4.8-jre'
|
||
|
||
testImplementation 'run.halo.app:api'
|
||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||
}
|
||
|
||
test {
|
||
useJUnitPlatform()
|
||
}
|
||
|
||
// 前端单独构建:cd ui && pnpm install && pnpm build(产物输出到 src/main/resources/console)
|
||
// 见 ui/README.md。不在 gradle 中集成 node,避免重复下载 node 运行时。
|
||
|
||
halo {
|
||
version = "2.21.7"
|
||
debug = true
|
||
}
|