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:
+4
-3
@@ -48,7 +48,8 @@ tasks.withType<Test> {
|
|||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
}
|
}
|
||||||
|
|
||||||
// 打包时排除dev环境配置
|
// 生产打包时排除dev环境配置
|
||||||
tasks.named<ProcessResources>("processResources") {
|
tasks.bootJar {
|
||||||
exclude("application-dev.yaml")
|
exclude("application-dev.yaml")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ spring:
|
|||||||
default-property-inclusion: non_null
|
default-property-inclusion: non_null
|
||||||
property-naming-strategy: SNAKE_CASE
|
property-naming-strategy: SNAKE_CASE
|
||||||
date-format: ${JSON_DATE_FORMAT:}
|
date-format: ${JSON_DATE_FORMAT:}
|
||||||
time-zone: ${JSON_TIME_ZONE:}
|
time-zone: ${JSON_TIME_ZONE:GMT}
|
||||||
|
|
||||||
mybatis-plus:
|
mybatis-plus:
|
||||||
configuration:
|
configuration:
|
||||||
|
|||||||
Reference in New Issue
Block a user