I am indirectly importing gson in a gradle plugin. I check the dependencies and everywhere I am using the same version of gson: 2.10.1 (the latest at the time of writing).
Yet, when I use my plugin I get the infamous exception:
Unless you use an ancient Gradle version, probably not.
That method is there since gson 2.4, that means since Gradle 3.1 the method should be in the built-in gson:
I solved the problem by taking a dependency (which is using gson 2.10.1) and changing it to produce a fat jar with gson relocated.
However this is the scan, maybe the problem can be uncovered and I can avoid building the fatJar with relocation for that dependency, as it is a bit awkward.
That build scan is not of the failing build.
Can you share that of the failing build?
Or as it seems this is about FOSS work, maybe you can even share the failing project.