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

[core] Fix missing kotlin and okio dependencies when using okhttp3. #5050

Merged
merged 3 commits into from
Feb 14, 2025

Conversation

LinMingQiang
Copy link
Contributor

Purpose

Relation pr : #5044 (this pr can't be reopen because force push.)

When I used the partition mark done action of http-report :
java. lang.NoClassDefFoundError: okio/Options
java. lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics

So we need to shade okio-jvm and kotlin-stdlib too.

Linked issue: close #xxx

Tests

API and Format

Documentation

@LinMingQiang
Copy link
Contributor Author

LinMingQiang commented Feb 11, 2025

@jerry-024 Here, it can only be 'okio-jvm' not 'okio', otherwise ut will not pass.

@LinMingQiang
Copy link
Contributor Author

This is the final version, production test or ut has passed.

@wwj6591812
Copy link
Contributor

+1

@jerry-024
Copy link
Contributor

jerry-024 commented Feb 14, 2025

Need't add okio-jvm and kotlin-stdlib-jdk8 as dependency?

@LinMingQiang
Copy link
Contributor Author

Need't add okio-jvm and kotlin-stdlib-jdk8 as dependency?

No need.

- com.squareup.okhttp3:okhttp:4.12.0
- com.squareup.okio:okio-jvm:3.6.0
- org.jetbrains.kotlin:kotlin-stdlib:1.8.21
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we don't need add okio-jvm and kotlin-stdlib as dependency. Needn't update this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It still bundles okio-jvm and kotlin-stdlib dependencies in this project, It's just that these two dependencies are introduced by okhttp3.

@jerry-024
Copy link
Contributor

LGTM

@JingsongLi
Copy link
Contributor

+1

@JingsongLi JingsongLi merged commit 9d2a460 into apache:master Feb 14, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants