Skip to content

Instantly share code, notes, and snippets.

@rponte
Created October 9, 2013 16:21
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save rponte/6903926 to your computer and use it in GitHub Desktop.
Save rponte/6903926 to your computer and use it in GitHub Desktop.
Excluding global dependency from all configurations (Gradle)
// ...
configurations {
all*.exclude group: 'xml-apis', module: 'xmlParserAPIs'
}
// Equivalent to:
configurations {
all.collect { configuration ->
configuration.exclude group: 'xml-apis', module: 'xmlParserAPIs'
}
}
// ...
@rponte
Copy link
Author

rponte commented Oct 9, 2013

@csokol
Copy link

csokol commented Feb 20, 2015

👍 just passing by to register that this was useful to me 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment