[Build] Disable custom normalization when conf cache is enabled

Custom input normalizations currently isn't supported by Gracle configuration cache
#KT-44611 In Progress
This commit is contained in:
Alexander Likhachev
2021-04-27 02:25:09 +03:00
parent cc183e96a4
commit ca2051e1d4
3 changed files with 14 additions and 7 deletions
+3
View File
@@ -82,5 +82,8 @@ fun Task.singleOutputFile(): File = when (this) {
else -> outputs.files.singleFile
}
val Project.isConfigurationCacheDisabled
get() = (gradle.startParameter as? org.gradle.api.internal.StartParameterInternal)?.isConfigurationCache != true
val Project.isIdeaActive
get() = providers.systemProperty("idea.active").forUseAtConfigurationTime().isPresent