Skip to content
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

3.x: upgrade okio to 3.4.0 #7238

Merged
merged 4 commits into from
Jul 27, 2023
Merged

Conversation

barchetta
Copy link
Member

@barchetta barchetta commented Jul 24, 2023

  • upgrade okio to 3.4.0
  • suppress graalvm sdk false positive

This version of okio has issues with Java modules (for example see square/okio#1306). This version of okio is written in Kotlin and splits the original okio artifact into okio (platform agnostic stuff) and okio-jvm (Java classes). We don't need okio at runtime (only okio-jvm), and it was causing modularity problems. To work-around this:

  1. Exclude okio from the runtime environment (libs folder).
  2. In helidon-tracing-jaeger add requires kotlin.stdlib; so that kotlin-stdlib is included in the module graph. We need this because kotlin-stdlib is a well-formed Java module, but okio-jvm (which depends on it) is not, and therefore we need some module to depend on kotlin.stdlib for it to be included in the module graph.

Okio is a transative dependency of okhttp which is a transitive dependency of a couple third parties (opentelemetry-exporter-jaeger for example). okhttp is not a direct third party dependency of Helidon -- except for one or two test dependencies.

@barchetta barchetta added dependencies Pull requests that update a dependency file 3.x Issues for 3.x version branch labels Jul 24, 2023
@barchetta barchetta self-assigned this Jul 24, 2023
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 24, 2023
@barchetta barchetta merged commit 9365db1 into helidon-io:helidon-3.x Jul 27, 2023
12 checks passed
@barchetta barchetta deleted the 3.x-okio branch January 11, 2024 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x Issues for 3.x version branch dependencies Pull requests that update a dependency file OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants