intellij-platform-gradle-plugin icon indicating copy to clipboard operation
intellij-platform-gradle-plugin copied to clipboard

Java plugin not resolved as transitive dependency of Kotlin plugin

Open snrostov opened this issue 4 years ago • 1 comments

Adding plugins.set(listOf("org.jetbrains.kotlin:211-1.4.21-release-IJ6693.43")) causes

e: Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
    class org.jetbrains.kotlin.psi.KtFile, unresolved supertypes: com.intellij.psi.PsiClassOwner, com.intellij.psi.PsiModifiableCodeBlock

The example project in attachment. ./gradlew build for this project failed with the error above.

Adding "java" to plugins manually fixes the issue.

snrostov avatar May 12 '21 09:05 snrostov

my 2ç: we shouldn't add transitive dependencies for external plugins automatically

  1. it will not work if the plugin is not bundled (need to specify version)
  2. you might end up with unexpected huge dependency tree

we could probably make an exception for bundled plugins, but these could change/become unavailable across different platforms/versions, so results are somewhat unpredictable again

YannCebron avatar May 12 '21 09:05 YannCebron