How to get a class method from another plugin by java reflection

0
4 comments

Why would you do that?

0

@Jakub Chrzanowski beause i want to get some variable from another plugin

0

In such a case, you have to set the dependency to the other plugin both in the Gradle configuration and in the plugin.xml. First will add that plugin's classes to your classpath, and the second will require that plugin in the runtime.

Note that this is not recommended working and may cause more issues than expected.

0

@Jakub Chrzanowski  is the plugin in the Gradle configuration and in the plugin.xml need to be in JetBrains Plugins Repository 

if the two plugins is non-public, how to set the Gradle configuration and plugin.xml?

 

0

Please sign in to leave a comment.