I'm trying to write a plugin that jumps to a URL based on some git remote info. How do I properly build Git4Idea and add it as a dependency to my plugin?
When I run:
GitRepositoryManager repositoryManager = GitUtil.getRepositoryManager(project);
I get this error:
ERROR - llij.ide.plugins.PluginManager - git4idea.repo.GitRepositoryManager cannot be cast to git4idea.repo.GitRepositoryManager
java.lang.ClassCastException: git4idea.repo.GitRepositoryManager cannot be cast to git4idea.repo.GitRepositoryManager
I was able to build the latest version of the community edition from source.
I added Git4Idea as a dependency in my plugin.xml and added `install path`/out/production/git4idea as a library of my plugin.