Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apply plugin: 'java'
- configurations.allObjects { configuration ->
- configuration.allDependencies { dependency ->
- dependency.eclipse = new EclipseProps()
- }
- }
- dependencies {
- compile("junit:junit:4.4") {
- eclipse.export = false
- }
- compile("foo:bar:1.0") {
- eclipse.exclude = true
- }
- compile("org.spockframework:spock:0.4")
- }
- task showExported << {
- configurations.compile.dependencies.each{ dep ->
- if (dep.eclipse.export) {
- println dep.name
- }
- }
- }
- class EclipseProps {
- boolean export = true
- boolean exclude = false
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement