fix(build): use bootJar task for production packaging

- Use bootJar instead of processResources for excluding dev configuration
- Set default time-zone to GMT for JSON serialization
This commit is contained in:
2026-05-21 14:30:52 +08:00
parent 44b8326e96
commit 193fed29b2
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -48,7 +48,8 @@ tasks.withType<Test> {
useJUnitPlatform()
}
// 打包时排除dev环境配置
tasks.named<ProcessResources>("processResources") {
// 生产打包时排除dev环境配置
tasks.bootJar {
exclude("application-dev.yaml")
}
}