diff --git a/build.gradle b/build.gradle index 86d5be5ea..ae190beea 100644 --- a/build.gradle +++ b/build.gradle @@ -50,7 +50,7 @@ configurations { smokeTestRuntimeOnly.extendsFrom runtimeOnly } -tasks.withType(JavaCompile) { +tasks.withType(JavaCompile).configureEach { options.compilerArgs << "-Xlint:unchecked" << "-Werror" } @@ -59,7 +59,7 @@ tasks.withType(JavaExec).configureEach { javaLauncher.set(javaToolchains.launcherFor(java.toolchain)) } -tasks.withType(Test) { +tasks.withType(Test).configureEach { useJUnitPlatform() testLogging { diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index ec3c4e64b..34ff50fee 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -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: