intellij-platform-gradle-plugin
intellij-platform-gradle-plugin copied to clipboard
Java plugin not resolved as transitive dependency of Kotlin plugin
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.
my 2ç: we shouldn't add transitive dependencies for external plugins automatically
- it will not work if the plugin is not bundled (need to specify version)
- 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