From 987806f7c22920bf7e9e7df2af042421a6a7ff33 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Fri, 30 May 2014 14:35:01 +0200 Subject: [PATCH] Polishing --- gradle/ide.gradle | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gradle/ide.gradle b/gradle/ide.gradle index aaf6868933e5..550059a4c549 100644 --- a/gradle/ide.gradle +++ b/gradle/ide.gradle @@ -17,7 +17,7 @@ eclipse.classpath.file.whenMerged { classpath -> def projectOutputDependencies = classpath.entries.findAll { entry -> entry.path =~ regexp } projectOutputDependencies.each { entry -> def matcher = (entry.path =~ regexp) - if(matcher) { + if (matcher) { def projectName = matcher[0][1] def path = "/${projectName}" if(!classpath.entries.find { e -> e instanceof ProjectDependency && e.path == path }) { @@ -50,12 +50,11 @@ eclipse.classpath.file.whenMerged { classpath -> // Ensure project dependencies come after 3rd-party libs (SPR-11836) // https://jira.spring.io/browse/SPR-11836 eclipse.classpath.file.whenMerged { classpath -> - def projectOutputDependencies = classpath.entries.findAll { entry -> entry instanceof ProjectDependency } - projectOutputDependencies.each { entry -> + classpath.entries.findAll { it instanceof ProjectDependency }.each { // delete from original position - classpath.entries.remove(entry) + classpath.entries.remove(it) // append to end of classpath - classpath.entries.add(entry) + classpath.entries.add(it) } }