Gradle "idea" erases the VCS integration setup


(Phil Swenson) #1

I think this is a bug, not sure. Every time I run “gradle idea” the VCS integration with SVN quits working in IntelliJ and I have to manually set it up again. Is there a work-around?

thanks


(Evgeny Goldin) #2

That’s what I use to restore it:

http://www.gradle.org/docs/current/userguide/idea_plugin.html => “37.4.2.3. Modifying the XML representation”:

idea.project {

ipr.withXml { provider -> provider.node.component.find { it.@name == ‘VcsDirectoryMappings’ }.mapping.@vcs = ‘Git’ }

}