Skip to content

Commit

Permalink
modified build.gradle for idea task configuring its vcs as Git
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-neck committed Aug 14, 2012
1 parent a21ee4b commit 26a6415
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions build.gradle
Expand Up @@ -7,14 +7,6 @@ allprojects {

sourceCompatibility = 1.6
targetCompatibility = 1.6

idea.project.ipr {
withXml { provider ->
provider.node.component.find {
it.@name == 'VcsDirectoryMappings'
}.mappings[0].@vcs = 'Git'
}
}
}

def jettyVersion = '8.1.2.v20120308'
Expand Down Expand Up @@ -49,3 +41,13 @@ project (':samples') {
compile project(':core')
}
}

idea.project.ipr {
withXml { provider ->
def map = provider.node.component.find {
it.@name == 'VcsDirectoryMappings'
}.mapping
map.@vcs = 'Git'
map.@directory = project.properties.projectDir
}
}

0 comments on commit 26a6415

Please sign in to comment.