Polishing

This commit is contained in:
Sam Brannen 2014-05-30 14:35:01 +02:00
parent 8ee94a4392
commit 987806f7c2
1 changed files with 4 additions and 5 deletions

View File

@ -50,12 +50,11 @@ eclipse.classpath.file.whenMerged { classpath ->
// Ensure project dependencies come after 3rd-party libs (SPR-11836) // Ensure project dependencies come after 3rd-party libs (SPR-11836)
// https://jira.spring.io/browse/SPR-11836 // https://jira.spring.io/browse/SPR-11836
eclipse.classpath.file.whenMerged { classpath -> eclipse.classpath.file.whenMerged { classpath ->
def projectOutputDependencies = classpath.entries.findAll { entry -> entry instanceof ProjectDependency } classpath.entries.findAll { it instanceof ProjectDependency }.each {
projectOutputDependencies.each { entry ->
// delete from original position // delete from original position
classpath.entries.remove(entry) classpath.entries.remove(it)
// append to end of classpath // append to end of classpath
classpath.entries.add(entry) classpath.entries.add(it)
} }
} }