Accessing com.intellij.openapi from Gradle based plugin project
已回答
Hi
I'm working on a Gradle-based plugin and I need to access classes in java openapi module (e.g. classes like StdModuleTypes or JavaModuleBuilder). But I don't know how to add a dependency to that module to my project. It's not part of the plugins folder in IntelliJ community, so I can't use plugins configuration of the intellij plugin in my build.gradle file. It's also not part of the ideaIC:209.2 lib that is added to the project. How can I access those classe?
Regards
Ehsan
请先登录再写评论。
AFAIK you should use the plugins configuration and add 'java' as described here: https://blog.jetbrains.com/platform/2019/06/java-functionality-extracted-as-a-plugin/
Yes, it works.
Thank you Martin :)
I don't know how to mark this question as answered!