Detekt: Error Installing the plugin in IntelliJ Community Edition

Created on 31 Aug 2019  路  2Comments  路  Source: detekt/detekt

Just adding the plugin into build.gradle.kts with no other parameter

plugins {
id("io.gitlab.arturbosch.detekt") version "1.0.1"
}

Failed to notify project evaluation listener.
Receiver class org.jetbrains.kotlin.allopen.gradle.AllOpenKotlinGradleSubplugin does not define or inherit an implementation of the resolved method abstract getNativeCompilerPluginArtifact()Lorg/jetbrains/kotlin/gradle/plugin/SubpluginArtifact; of interface org.jetbrains.kotlin.gradle.plugin.KotlinGradleSubplugin.
Receiver class org.jetbrains.kotlin.allopen.gradle.AllOpenKotlinGradleSubplugin does not define or inherit an implementation of the resolved method abstract getNativeCompilerPluginArtifact()Lorg/jetbrains/kotlin/gradle/plugin/SubpluginArtifact; of interface org.jetbrains.kotlin.gradle.plugin.KotlinGradleSubplugin.

Environment:

  • Java-jdk-11
  • IntelliJ Community 2019.2.1
  • Gradle v5.6
  • Kotlin 1.2.71
gradle support

Most helpful comment

Could you please try to use a newer Kotlin version? 1.2.71 is nearly 1 year old.

All 2 comments

Could you please try to use a newer Kotlin version? 1.2.71 is nearly 1 year old.

Thanks for your reply! Yes, updating solved the problem

kotlin("jvm") version "1.3.50"
kotlin("plugin.spring") version "1.3.50"

I was doing a test with a generated project in start.spring.io and came with Kotlin 1.2.71 as default.

Was this page helpful?
0 / 5 - 0 ratings