Closed sdoward closed 11 months ago
Probably a version conflict between plugins. You can run buildEnvironment to see if our transitive version was changed to an incompatible release.
@ben-manes thanks for the quick response.
Actually I only see this plugin with those dependencies...
It looks like you might have a dependency constraint / resolution rule that forces it to upgrade? Perhaps they made an incompatible release between 2.8 and 2.10? If so, you might force alignment, e.g. either by upgrading okhttp to 4.10.0 or not forcing the okio upgrade. That might be done using their platform bom, okhttp-bom
, to assert alignment across their artifacts.
com.squareup.okio:okio:2.8.0 -> 2.10.0
I have a similar issue, in my case my Wire plugin fails during :xxx:generateMainProtos
with error:
Unable to find method ''okio.FileSystem okio.Okio.asResourceFileSystem(java.lang.ClassLoader)''
'okio.FileSystem okio.Okio.asResourceFileSystem(java.lang.ClassLoader)'
And I see a similar output from buildEnvironment
command, but I don't think com.squareup.okio:okio:2.8.0 -> 2.10.0
is the reason (note that it's forced by com.squareup.moshi:moshi-kotlin:1.12.0
dependency of com.github.ben-manes:gradle-versions-plugin
itself).
I have no idea what exactly is going on but the error is mostly likely caused by conflict between Okio 2.x
and Okio 3.x
versions. My current workaround is to downgrade to version 0.42.0
which didn't depend on Okio
, but I don't like it.
A possible solution could be to update okhttp
version of this plugin from 4.9.3
(2021-11-21) to the latest stable version, as of writing it is 4.10.0
(2022-06-12), this version should use Okio 3.x
.
The issue is fixed for me in v0.47.0. Thanks!
I see the follow exception when running
dependencyUpdates
.Version: 0.46.0 Gradle Version: 7.4.2