parent
57ddb0d3fe
commit
ff0342ace4
@ -1,20 +1,23 @@
|
||||
# All directories should end in / (information used by ide.gradle)
|
||||
|
||||
# Ant
|
||||
ant
|
||||
ant/
|
||||
|
||||
# Gradle
|
||||
build
|
||||
.gradle/
|
||||
build/
|
||||
|
||||
# Maven
|
||||
target
|
||||
target/
|
||||
|
||||
# Eclipse
|
||||
.classpath
|
||||
.project
|
||||
.settings
|
||||
bin
|
||||
.settings/
|
||||
bin/
|
||||
|
||||
# IDEA
|
||||
*.iws
|
||||
*.ipr
|
||||
*.iml
|
||||
out
|
||||
out/
|
@ -0,0 +1,19 @@
|
||||
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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue