Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[build] Let IDEA know this is a Git project.

  • Loading branch information...
commit 744e0ab94d2cabbed7c1a5fc25028ca3d9f9b9b6 1 parent 06c1d57
@alkemist alkemist authored
Showing with 19 additions and 5 deletions.
  1. +19 −5 build.gradle
View
24 build.gradle
@@ -93,6 +93,18 @@ allprojects {
}
}
+
+idea {
+ project {
+ jdkName "1.6"
+ ipr {
+ withXml { provider ->
+ def node = provider.asNode()
+ node.component.find { it.'@name' == 'VcsDirectoryMappings' }?.mapping[0].'@vcs' = 'Git'
+ }
+ }
+ }
+}
subprojects { project ->
apply plugin: 'groovy'
apply plugin: 'maven'
@@ -128,11 +140,13 @@ subprojects { project ->
options.debug = true
}
- idea.module.iml.whenMerged { module ->
- // adding slf4j-simple with scope TEST to .iml
- module.dependencies << new org.gradle.plugins.ide.idea.model.ModuleLibrary(
- [new org.gradle.plugins.ide.idea.model.Path("jar://\$GRADLE_USER_HOME/cache/org.slf4j/slf4j-simple/jars/slf4j-simple-${slf4jVersion}.jar!/")], [], [], [], "TEST"
- )
+ idea {
+ module.iml.whenMerged { module ->
+ // adding slf4j-simple with scope TEST to .iml
+ module.dependencies << new org.gradle.plugins.ide.idea.model.ModuleLibrary(
+ [new org.gradle.plugins.ide.idea.model.Path("jar://\$GRADLE_USER_HOME/cache/org.slf4j/slf4j-simple/jars/slf4j-simple-${slf4jVersion}.jar!/")], [], [], [], "TEST"
+ )
+ }
}
dependencies {
Please sign in to comment.
Something went wrong with that request. Please try again.