Provided scope in Gradle
29 Oct 2014Very useful thing (especially when you’re more familiar with maven :)): link.
The trick is to create a provided configuration and add it’s artifacts to compile.
EDIT: You often need to add the provided scope separately in idea plugin configuration: this explains how.