-
-
Notifications
You must be signed in to change notification settings - Fork 3k
chore: bump-okhttp-4.12.0-to-5.0.0 #13521
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
Changes from 2 commits
9a70d8b
aace5c7
5e07ec7
3d32f6e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -147,7 +147,9 @@ extraJavaModuleInfo { | |
| } | ||
| module("com.konghq:unirest-modules-gson", "unirest.modules.gson") | ||
| module("com.squareup.okhttp3:okhttp", "okhttp3") | ||
| module("com.squareup.okhttp3:okhttp-sse", "okhttp3.sse") | ||
|
|
||
| module("com.squareup.okhttp3:okhttp-jvm", "okhttp3") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think, now two modules have the same name - see line 149.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I understand your concern. Even though two modules are assigned the same name here, there is no actual conflict because they refer to completely separate artifacts (okhttp vs. okhttp-jvm). This duplication is currently necessary because some dependencies (such as langchain4j-hugging-face) still require the legacy okhttp artifact, while our project relies on the newer okhttp-jvm from OkHttp 5.x. Since the Java Module System (JPMS) treats them as distinct jars, and as long as both modules are not loaded into the same named module path, this setup works without any issues.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If there's anything wrong or anything I should fix in what I said, please feel free to let me know :)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My gut feeling says that overloaded module names will cause issues. Especially when we will switch to use modules as the primary source of dependencies: https://github.com/gradlex-org/java-module-dependencies
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Overloaded module names could definitely cause issues, especially if we move towards using modules as the primary way of managing dependencies in the future.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I checked the dependency tree with the dependencies task, and you're right.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does a separte module name help to avoid module name overloading? The modules will be on the same path - as JabRef needs all of them.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the current situation, module name conflicts are unavoidable, and using separate module names alone does not fundamentally resolve the issue.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I think it does not end up the Module Path, but is needed by the mechanism that looks at the metadata to create the missing I know that it looks like the name is used twice, but in practice only one of the Jars is used. It's confusing but its Kotlin Multi-Platform libraries "clashing" with JPMS. Maybe add a comment about this to the We have a similar situation here with
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The name |
||
| module("com.squareup.okhttp3:okhttp-jvm-sse", "okhttp3.sse") | ||
| module("com.squareup.okio:okio", "okio") | ||
| module("com.squareup.retrofit2:converter-jackson", "retrofit2.converter.jackson") | ||
| module("com.squareup.retrofit2:retrofit", "retrofit2") | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.