From a1d1c749870323c1fd1b25d811600948eb54fd69 Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 9 Feb 2020 15:11:51 +0000 Subject: [PATCH] Enable strict JSR-305 mode --- build.gradle.kts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 95853eb37b..6dc52ab4ef 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -58,7 +58,10 @@ allprojects { } tasks.withType { - kotlinOptions.jvmTarget = "1.8" + kotlinOptions { + jvmTarget = "1.8" + freeCompilerArgs = listOf("-Xjsr305=strict") + } } tasks.withType {