braindump ... cause thread-dumps are not enough ;)

Provided scope in Gradle

Very 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.