Thought I would toss a heads up about jitpack url.
The maven url they say to use is.
maven { url "https://jitpack.io" }
Been having issues off and on with them with connection timeouts causing build failures.
Add www to the url and it fixes the problem.
maven { url "https://www.jitpack.io" }