Remove recursive project dependencies from Eclipse classpath

This commit is contained in:
Sam Brannen 2023-10-29 11:25:53 +01:00
parent de74520286
commit fc77172d67
1 changed files with 7 additions and 0 deletions

View File

@ -60,6 +60,13 @@ eclipse.classpath.file.whenMerged {
}
}
// Remove recursive project dependencies
eclipse.classpath.file.whenMerged {
entries.findAll { it instanceof ProjectDependency && it.path == ('/' + project.name) }.each {
entries.remove(it)
}
}
// Include project specific settings
task eclipseSettings(type: Copy) {
from rootProject.files(