Avoid warnings with gradle-1.6

Using ConfigurationContainers and TaskContainers 'create()' instead of 'add()'.