Skip to content

Commit aa0c4d3

Browse files
committed
No longer need to protect against using multiple repositories.
1 parent 7c61210 commit aa0c4d3

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

build.gradle

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,6 @@ if (jointBuildGroovyJarProperty) {
7474
}
7575
}
7676

77-
// Prevent multiple repositories being used because the populateDependencies task in assemble.gradle
78-
// will break down if this build uses multiple repositories.
79-
gradle.taskGraph.whenReady { taskGraph ->
80-
if (taskGraph.hasTask(populateDependencies)) {
81-
def projectsWithMultipleRepos = allprojects.findAll { repositories.size() > 1 }
82-
if (projectsWithMultipleRepos) {
83-
throw new GradleException(
84-
"There are projects with more than one repository defined. \n" +
85-
"This isn't allowed as it breaks the populateDependencies task. You can only use the grails central repo. \n" +
86-
"This is a temporary workaround for the Gradle issue: http://issues.gradle.org/browse/GRADLE-1989"
87-
)
88-
}
89-
}
90-
}
91-
9277
allprojects {
9378
repositories {
9479
maven { url "http://repo.grails.org/grails/core" }

0 commit comments

Comments
 (0)