plugins { id 'java' id "io.freefair.lombok" version "8.14" id "run.halo.plugin.devtools" version "0.6.2" } group 'io.github.shirainbown.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 }