You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
470 B
19 lines
470 B
apply plugin: "idea"
|
|
apply plugin: "eclipse"
|
|
|
|
def gitIgnoreDirs = files(file(".gitignore").readLines().findAll { !it.trim().startsWith("#") && it.trim().endsWith("/") })
|
|
|
|
idea {
|
|
project {
|
|
jdkName "1.6"
|
|
configure(modules) {
|
|
excludeDirs = gitIgnoreDirs as Set
|
|
}
|
|
ipr {
|
|
withXml { provider ->
|
|
def node = provider.asNode()
|
|
node.component.find { it.'@name' == 'VcsDirectoryMappings' }?.mapping[0].'@vcs' = 'Git'
|
|
}
|
|
}
|
|
}
|
|
} |