I think you should be able to use a dependency sub...
# gradle
o
I think you should be able to use a dependency substitution rule for that.