From e08525679cad44b96d84ab74ecb45c001c069d30 Mon Sep 17 00:00:00 2001 From: Abandoned Cart Date: Thu, 16 Mar 2023 08:55:32 -0400 Subject: [PATCH] Suppress a linear configuration warning Due to the way Android Studio reads gradle configuration, a false positive warning for incompatible Java versions is fired when the Kotlin Java version is not specified first. --- app/build.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index fe3996e6..42099334 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -51,14 +51,14 @@ android { /* JVM Bytecode Options */ def javaVersion = JavaVersion.VERSION_1_8 - compileOptions { - sourceCompatibility javaVersion - targetCompatibility javaVersion - } kotlinOptions { jvmTarget = javaVersion.toString() freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn" } + compileOptions { + sourceCompatibility javaVersion + targetCompatibility javaVersion + } signingConfigs { ci {