Skip to content

Commit

Permalink
Add global Spring json date format as array
Browse files Browse the repository at this point in the history
  • Loading branch information
RustyHMCTS committed Jan 5, 2024
1 parent 01e5a27 commit e795be8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ configurations {
smokeTestRuntimeOnly.extendsFrom runtimeOnly
}

tasks.withType(JavaCompile) {
tasks.withType(JavaCompile).configureEach {
options.compilerArgs << "-Xlint:unchecked" << "-Werror"
}

Expand All @@ -59,7 +59,7 @@ tasks.withType(JavaExec).configureEach {
javaLauncher.set(javaToolchains.launcherFor(java.toolchain))
}

tasks.withType(Test) {
tasks.withType(Test).configureEach {
useJUnitPlatform()

testLogging {
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ spring:
import: "optional:configtree:/mnt/secrets/opal/"
application:
name: Opal Fines Service
jackson:
serialization:
write_dates_as_timestamps: true
security:
oauth2:
client:
Expand Down

0 comments on commit e795be8

Please sign in to comment.