Kotlin Facet: Fix platform detection for Gradle project

This commit is contained in:
Alexey Sedunov
2016-11-10 15:44:18 +03:00
parent e6fcf20cf2
commit b1fbf9f6b6
@@ -49,8 +49,8 @@ class DifferentStdlibGradleVersionInspection : GradleBaseInspection() {
if (dependenciesCall.parent !is PsiFile) return
val stdlibStatement = findLibraryStatement(closure, "org.jetbrains.kotlin", "kotlin-stdlib") ?: return
val stdlibVersion = getResolvedKotlinStdlibVersion(closure.containingFile, "org.jetbrains.kotlin:kotlin-stdlib:") ?: return
val stdlibStatement = findLibraryStatement(closure, "org.jetbrains.kotlin", libraryId) ?: return
val stdlibVersion = getResolvedKotlinStdlibVersion(closure.containingFile, "org.jetbrains.kotlin:$libraryId:") ?: return
onFound(stdlibVersion, stdlibStatement)
}