Permalink
Browse files

[build] reinstate sanity check for there only being one dependency re…

…pository in the build
  • Loading branch information...
1 parent dfcfa4b commit 1084e20a925c05e6ba07a95c47eac17fc58d6aed @alkemist alkemist committed with graemerocher Jan 6, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 build.gradle
View
@@ -72,11 +72,11 @@ if (jointBuildGroovyJarProperty) {
}
}
-// Prevent multiple repositories being used, commented out as currently doesn't work.
-/*gradle.taskGraph.whenReady { taskGraph ->
+// Prevent multiple repositories being used because the populateDependencies task in assemble.gradle
+// will break down if this build uses multiple repositories.
+gradle.taskGraph.whenReady { taskGraph ->
if (taskGraph.hasTask(populateDependencies)) {
def projectsWithMultipleRepos = allprojects.findAll { repositories.size() > 1 }
- println "projectsWithMultipleRepos: $projectsWithMultipleRepos"
if (projectsWithMultipleRepos) {
throw new GradleException(
"There are projects with more than one repository defined. \n" +
@@ -86,7 +86,6 @@ if (jointBuildGroovyJarProperty) {
}
}
}
-*/
allprojects {
repositories {

0 comments on commit 1084e20

Please sign in to comment.