Can't compile plugin after update to 2019.3
So, I have a small plugin in developement
build.gradle:
```
plugins {
id 'java'
id 'org.jetbrains.intellij' version '0.4.15'
}
group 'ID'
version '1.0'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version '2019.2'
type 'PC'
}
patchPluginXml {
changeNotes """First version"""
}
```
plugin.xml
```
<idea-plugin>
<id>ID</id>
<name>Python module finder</name>
<vendor email="EMAIL">Alexey Dmitriev</vendor>
<description>
DESCRIPTION
</description>
<depends>com.intellij.modules.python</depends>
<extensions defaultExtensionNs="Pythonid">
<importResolver implementation="mypackage.ImportResolver" />
</extensions>
</idea-plugin>
```
I can run it. Now If I change version to 2019.3, I can't compile it anymore.
com.intellij.modules.python and importResolver become red and I get compilation error trying to import com.jetbrains.python.psi.impl.PyImportResolver,
error: package com.jetbrains.python.psi.impl does not exist
It looks I failed to add dependency on python correctly.
What should I do to fix it?
Please sign in to leave a comment.
I believe you need to update your your build.gradle to also include the plugin as of a recent version, so you probably need to add:
intellij {plugins = [python]
}
See:
http://www.jetbrains.org/intellij/sdk/docs/products/dev_alternate_products.html#configuring-buildgradle-to-target-products-other-than-intellij-idea
and
https://github.com/JetBrains/gradle-intellij-plugin#setup-dsl