소스 검색

Fix gradle IDEA code for git selection as VCS.

Luke Taylor 14 년 전
부모
커밋
1b2fdf8b02
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      build.gradle

+ 2 - 1
build.gradle

@@ -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'
     }