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
Unknown enum constant DeprecationLevel #8194
Comments
Same as gradle/kotlin-dsl-samples#1301 and I can check we have this as API |
It looks like we maybe didn't declare an api dependency in 4.x https://github.com/square/okhttp/blob/parent-4.12.0/okhttp/build.gradle#L24-L25 while we do for https://github.com/square/okhttp/blob/parent-5.0.0-alpha.12/okhttp/build.gradle.kts#L91-L94 |
Any update on this? Is there a way to suppress it? pretty annoying |
I have just tried again with version It's worth noting that adding |
@c-eg I think we are using Automatic-Module-Name here https://github.com/square/okhttp/blob/master/okhttp/build.gradle.kts#L54 We don't have a module-info. Should we add an import there? |
I'm not familiar with OSGi, but after a quick look through some documentation, it seems like that might be the necessary fix. Another thing, the Kotlin documentation for OSGi states
which okhttp3 does not do, maybe this could be addressed at the same time? okhttp/gradle/libs.versions.toml Line 68 in dba8478
|
This is above my head. Feel free to submit a PR. @swankjesse might know the fix. |
I forked and built locally, adding the import statement, and then published to maven local; but it didn't fix the issue. |
After adding OkHttp3 (4.12.0), with Gradle (8.3) and JDK (17.0.7 Corretto), I get the following warnings appear when running
gradle build
:The text was updated successfully, but these errors were encountered: