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

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

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.