If one module has a dependency on version 1.1 of library X and another module on version 2.0 of the same library, gradle will use the latest version.
To make gradle fail the build on encountering a conflict, we can do the following:
configurations.all {
resolutionStrategy {