Gradle multiple repositories not working. What helped me was --refresh-dependencies option.