Ouch, it's seems like a hard to fix issue.
You would need to rename the dependency so Gradle doesn't need to resolve the version conflict. I guess that's what one of the last messages in the issue suggest using an includedBuild, that at the end is just a wrapper to rename the artifact.