It's very confusing when depending on a SNAPSHOT build while debugging, and you publish a SNAPSHOT build of some dependency to the local repository, and the build goes and gets the one from Sonatype instead.
This can be fixed my moving mavenLocal to the top of the repositories list in the Gradle build file.