Skip to content

Instantly share code, notes, and snippets.

@erikthered
Last active January 4, 2016 20:19
Show Gist options
  • Save erikthered/8673054 to your computer and use it in GitHub Desktop.
Save erikthered/8673054 to your computer and use it in GitHub Desktop.
eclipse {
classpath.file {
whenMerged { classpath ->
classpath.entries.removeAll { it.path.endsWith('pom') }
}
}
wtp.component.file {
whenMerged { wtpComponent ->
def toIgnore = wtpComponent.wbModuleEntries.findAll { entry ->
(entry instanceof org.gradle.plugins.ide.eclipse.model.WbDependentModule) && entry.handle.endsWith('pom')
}
wtpComponent.wbModuleEntries.removeAll(toIgnore)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment