[Build] Fix configuration cache undeclared system property read issues

#KT-44611 In Progress
This commit is contained in:
Alexander Likhachev
2021-04-27 02:23:19 +03:00
parent f0a6d9f33f
commit cc183e96a4
4 changed files with 13 additions and 5 deletions
+3
View File
@@ -81,3 +81,6 @@ fun Task.singleOutputFile(): File = when (this) {
is ProGuardTask -> project.file(outJarFiles.single()!!)
else -> outputs.files.singleFile
}
val Project.isIdeaActive
get() = providers.systemProperty("idea.active").forUseAtConfigurationTime().isPresent