Fix provided configuration with gradle 2.x