Gradle "idea" erases the VCS integration setup

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?


That’s what I use to restore it: => “ Modifying the XML representation”:

idea.project {

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