Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…pository in the build
  • Loading branch information...
commit c591956ff8c766eab949b70a55cf94a170b8ef77 1 parent 5ba8333
@alkemist alkemist authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 build.gradle
View
7 build.gradle
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.