then I use git4idea bundledPlugin, project lost com.intellij.dvcs.*(com.intellij.dvcs.repo.Repository) dependency
What happened?
then I use git4idea bundledPlugin, project lost com.intellij.dvcs.*(com.intellij.dvcs.repo.Repository) dependency
Relevant log output or stack trace
Cannot access 'com.intellij.dvcs.repo.Repository' which is a supertype of 'git4idea.repo.GitRepository'. Check your module classpath for missing or conflicting dependencies
Steps to reproduce
- add
platformBundledPlugins = Git4Ideain gradle.properties, then use
GitUtil.getRepositoryManager(project!!).getRepositoryForFileQuick(FileDocumentManager.getInstance().getFile(FileEditorManager.getInstance(project).getSelectedTextEditor()?.getDocument()!!))
- then run Plugin in Gradle project
Gradle IntelliJ Plugin version
3.1.0
Gradle version
8.10.2
Operating System
Windows
Link to build, i.e. failing GitHub Action job
No response
I try update libs.versions.toml
intelliJPlatform = "2.1.0" to intelliJPlatform = "2.0.1"
It fix
This is expected behaviour and Gradle IntelliJ Plugin would have logged a warning for that.
https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#usage
@YannCebron
but intelliJPlatform plugin different effect in "2.1.0" and "2.0.1", they all "2.X".
looks related https://youtrack.jetbrains.com/issue/MP-7019#