Skip to content

Commit

Permalink
Revert "Fix IDEA test classpath"
Browse files Browse the repository at this point in the history
This reverts commit f7781b4.
  • Loading branch information
graemerocher committed Nov 17, 2016
1 parent f7781b4 commit aff26b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,15 @@ subprojects { project ->
}
}

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 {
documentation("org.fusesource.jansi:jansi:$jansiVersion")
documentation("jline:jline:$jlineVersion")
Expand Down
19 changes: 0 additions & 19 deletions gradle/idea.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,4 @@ idea {
}
}
}
}

// referenced in IDEA test classpath
configurations {
slf4j_simple
}
dependencies {
slf4j_simple "org.slf4j:slf4j-simple:${slf4jVersion}@jar"
}

subprojects {
plugins.withType(org.gradle.plugins.ide.idea.IdeaPlugin) {
idea {
module {
// add slf4j-simple to TEST scope
scopes.TEST.plus.add(rootProject.configurations.slf4j_simple)
}
}
}
}

0 comments on commit aff26b2

Please sign in to comment.