Make DifferentKotlinGradleVersionInspection inpection work for classpath call with braces

This commit is contained in:
Nikolay Krasko
2016-07-07 20:13:25 +03:00
parent b04ed12ee1
commit e6c05aa92d
3 changed files with 25 additions and 2 deletions
@@ -52,4 +52,13 @@
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Kotlin Gradle and IDE plugins versions are different</problem_class>
<description>Kotlin version that is used for building with Gradle (0.0.1) differs from the one bundled into the IDE plugin ($PLUGIN_VERSION)</description>
</problem>
<problem>
<file>wrongPluginVersionWithBracesCall.gradle</file>
<line>6</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="wrongPluginVersionWithBracesCall.gradle" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Kotlin Gradle and IDE plugins versions are different</problem_class>
<description>Kotlin version that is used for building with Gradle (0.0.1) differs from the one bundled into the IDE plugin ($PLUGIN_VERSION)</description>
</problem>
</problems>
@@ -0,0 +1,11 @@
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:0.0.1")
}
}
apply plugin: 'java'
apply plugin: 'kotlin'