Permalink
Browse files

[build] update idea metadata generation to new Gradle api

  • Loading branch information...
1 parent 87949c1 commit 657aaccb418b6fa064727babb150fad588ff3155 @ldaley ldaley committed with graemerocher Dec 10, 2011
Showing with 5 additions and 8 deletions.
  1. +5 −8 build.gradle
View
@@ -114,14 +114,11 @@ subprojects { project ->
options.debug = true
}
- ideaModule {
- // pathVariables GRADLE_USER_HOME: file('/home/myuser/.gradle') // that does not work
- whenConfigured { 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"
+ )
}
repositories {

0 comments on commit 657aacc

Please sign in to comment.