Skip to content

Commit

Permalink
Fix gradle IDEA code for git selection as VCS.
Browse files Browse the repository at this point in the history
  • Loading branch information
tekul committed Apr 20, 2011
1 parent 71ed6d7 commit 1b2fdf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle
Expand Up @@ -117,8 +117,9 @@ ideaModule {
ideaProject {
javaVersion = '1.6'
subprojects = [rootProject] + javaProjects
withXml { node ->
withXml { provider ->
// Use git
def node = provider.asNode()
def vcsConfig = node.component.find { it.'@name' == 'VcsDirectoryMappings' }
vcsConfig.mapping[0].'@vcs' = 'Git'
}
Expand Down

0 comments on commit 1b2fdf8

Please sign in to comment.