I've been confused about the different repositories declaration inside
repositoriesinside each module
repositoriesat each module
Breaking down to 2 differences,
buildscript block and others.
buildscript configuration section is for gradle itself (i.e. changes to how gradle is able to perform the build).
repositories here only affecting gradle building process.
allprojects or module
allprojects section is for the modules being built by Gradle, hence
repositories inside the module is module specified.
This type of
repositories is where your
dependencies used to look up packages.