Strange *-tests.jar resolution issue when using mavenLocal()

FWIW, what I’m experiencing seems to essentially be the same as this:

https://issues.gradle.org/browse/GRADLE-2709

The weird thing is how it does/doesnt work depending on the version of the parent dependency I’m trying to resolve, and I can’t find what differs between the two versions that would now cause this.