Skip to content

Add multi-release jars to enable Java Modules #8767

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

yschimke
Copy link
Collaborator

@yschimke yschimke commented May 11, 2025

Attempting to apply multi-release Jars and use it to add java9/module-info.java files.

This should run a HTTP request against square.com using a jlink image.

./gradle okhttp-module-tests:imageRun

Todo

  • Enable OkHttp modules in the test to flush out errors
  • Setup a CI job probably testing against Mockserver

@yschimke yschimke requested a review from JakeWharton May 11, 2025 14:53
@yschimke yschimke added android Relates to usage specifically on Android providers Non core security providers jdkversions JDK 8, 17, 19 etc. labels May 11, 2025
@yschimke yschimke marked this pull request as ready for review May 11, 2025 15:53
@yschimke
Copy link
Collaborator Author

yschimke commented May 11, 2025

Current status! resolved

Exception in thread "main" java.lang.IllegalAccessError: class okhttp3.internal.concurrent.TaskRunner (in module okhttp3) cannot access class java.util.logging.Logger (in module java.logging) because module okhttp3 does not read module java.logging
	at okhttp3/okhttp3.internal.concurrent.TaskRunner.<clinit>(TaskRunner.kt:362)

@yschimke yschimke requested a review from swankjesse May 26, 2025 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Relates to usage specifically on Android jdkversions JDK 8, 17, 19 etc. providers Non core security providers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant