Understanding why Gradle pulls in old 3rd party versions

In another thread, it was suggested to run with -i flag, for more logging. The rule indicated by “selected by rule” might be from a plugin that is applied in your script. Check the additional logs to find which plugin it is and see if you can change it’s configuration.

Anyway, you can also try just using dependency substitution for the relevant dependency.