-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
okio as a dependency changed artifactId in 4.10.x release #7351
Comments
Also related square/okio#1067 (comment) and square/okio#1121 |
This is the PR that bumped okio from 2.9 to 3 - #7225 |
Fixed in #7354 |
@yschimke Thanks for looking into this. Could you please help me understand how #7354 fixes this issue? As I understood #7354 creates a dependency from However, since Also I see the PR was made towards the main branch so 4.x will not get it. Let me try to understand the path moving forwards. Is it true starting from Was it intended to introduce the similar change to 4.10.x (depending on Thanks again for looking into this issue. |
OK I see https://square.github.io/okio/changelog/#version-320 (square/okio#1125) has a similar change. So maybe you could release 4.10.1 to depend on |
Yep, sorry, you are right, will require a bump and release. |
Thank you so much! Looking forwards to a new release. Also thanks for working on the workaround to help users migrate. |
Yep! I wanna release 4.11.0 that depends on Okio 3.2.0. |
@swankjesse When will 4.11.0 be released to fix this? Our project has both okio:1.12.0 and okio-jvm:3.0.0. When |
Since 4.10.0 release,
okio
, as a dependency, has been changed tookio-jvm
fromokio
. https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp/4.10.0 vs https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp/4.9.3This is problematic because build tools like maven and gradle will treat them as two different artifacts and pull both of them as dependencies.
As an example:
Will result in both
okio-2.9.0.jar
andokio-jvm-3.0.0.jar
being pulled in as dependencies, while otherwise build tools will only pick up one of those (version resolution is a different story and things like maven-enforcer-plugin will not help in this case). The problem gets harder to be discovered ifokio
is introduced as a transitive dependency by another artifact.We also noticed this was reverted in 5.x, see https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp/5.0.0-alpha.9. So maybe this was introduced accidentally?
The text was updated successfully, but these errors were encountered: