From f77c08a8212866e688c33333425208d4c865e0f8 Mon Sep 17 00:00:00 2001 From: cristiangarcia Date: Tue, 13 Feb 2024 11:34:21 +0100 Subject: [PATCH] Fail fast, and with a descriptive error, if both configuration-cache and native are enabled Required for KTI-1553 --- settings.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/settings.gradle b/settings.gradle index b8c2cd53e10..e8e2b92828e 100644 --- a/settings.gradle +++ b/settings.gradle @@ -26,6 +26,13 @@ plugins { } def buildProperties = BuildPropertiesKt.getKotlinBuildPropertiesForSettings(settings) +if (buildProperties.isKotlinNativeEnabled && startParameter.isConfigurationCacheRequested()) { + throw new Exception( + """ + Kotlin Native is not compatible with Gradle configuration-cache. + Please, disable Configuration-cache before you enable native. + """.stripIndent()) +} // modules include ":benchmarks",