Make it possible to attach community version of kotlin-ide

This commit is contained in:
Nikita Bobko
2021-06-14 18:07:23 +02:00
committed by teamcityserver
parent 8ac5d03f02
commit c954fa4900
2 changed files with 8 additions and 3 deletions
+4 -1
View File
@@ -86,4 +86,7 @@ val Project.isConfigurationCacheDisabled
get() = (gradle.startParameter as? org.gradle.api.internal.StartParameterInternal)?.isConfigurationCache != true
val Project.isIdeaActive
get() = providers.systemProperty("idea.active").forUseAtConfigurationTime().isPresent
get() = providers.systemProperty("idea.active").forUseAtConfigurationTime().isPresent
val Project.intellijCommunityDir: File
get() = rootDir.resolve("kotlin-ide/intellij/community").takeIf { it.isDirectory } ?: rootDir.resolve("kotlin-ide/intellij")