Fail fast, and with a descriptive error, if both configuration-cache and native are enabled

Required for KTI-1553
This commit is contained in:
cristiangarcia
2024-02-13 11:34:21 +01:00
committed by Space Team
parent 95ea711659
commit f77c08a821
+7
View File
@@ -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",