-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Library has Kotlin runtime bundled into it #1440
Comments
I think we could probably make this a |
Isn't (that said, the Kotlin runtime probably should be a normal dependency rather than shaded? or maybe it's just an issue with shading where it leaves some Kotlin-specific metadata files that should be removed or somehow shaded as well?) |
I already felt a bit bad about bundling the Kotlin runtime. If you're using |
Are there still any plans to address this? I recently (bazelbuild/bazel@7025bb8) updated Bazel to use autovalue 1.10.4, and was surprised that we now have a copy of the kotlin stdlib in our dependency tree. |
Work towards starlark options parser cleanup: #22365. PiperOrigin-RevId: 633649782 Change-Id: I73180180142b5b23e91f1ee8c845ea606cfdc85e
Let me see if I can cook something up. |
Thanks! |
AutoBuilder clients that don't use Kotlin shouldn't have to have the Kotlin runtime on their classpath, even if it is only the annotation-processing classpath. Additionally, the metadata API was recently moved from `kotlinx.*` to `kotlin.*`, and using reflection means we can find either version. Fixes #1440. RELNOTES=AutoValue (including AutoBuilder) no longer bundles the Kotlin runtime. This may require adding an explicit dependency, though usually if the Kotlin runtime is needed it is because you are either compiling Kotlin or compiling Java code that depends on Kotlin code. Either way you should have a transitive dependency on the Kotlin runtime. PiperOrigin-RevId: 635615798
AutoBuilder clients that don't use Kotlin shouldn't have to have the Kotlin runtime on their classpath, even if it is only the annotation-processing classpath. Additionally, the metadata API was recently moved from `kotlinx.*` to `kotlin.*`, and using reflection means we can find either version. Fixes #1440. RELNOTES=AutoValue (including AutoBuilder) no longer bundles the Kotlin runtime. This may require adding an explicit dependency, though usually if the Kotlin runtime is needed it is because you are either compiling Kotlin or compiling Java code that depends on Kotlin code. Either way you should have a transitive dependency on the Kotlin runtime. PiperOrigin-RevId: 635615798
AutoBuilder clients that don't use Kotlin shouldn't have to have the Kotlin runtime on their classpath, even if it is only the annotation-processing classpath. Additionally, the metadata API was recently moved from `kotlinx.*` to `kotlin.*`, and using reflection means we can find either version. Fixes #1440. RELNOTES=AutoValue (including AutoBuilder) no longer bundles the Kotlin runtime. This may require adding an explicit dependency, though usually if the Kotlin runtime is needed it is because you are either compiling Kotlin or compiling Java code that depends on Kotlin code. Either way you should have a transitive dependency on the Kotlin runtime. PiperOrigin-RevId: 635615798
AutoBuilder clients that don't use Kotlin shouldn't have to have the Kotlin runtime on their classpath, even if it is only the annotation-processing classpath. Additionally, the metadata API was recently moved from `kotlinx.*` to `kotlin.*`, and using reflection means we can find either version. Fixes #1440. PiperOrigin-RevId: 635615798
AutoBuilder clients that don't use Kotlin shouldn't have to have the Kotlin runtime on their classpath, even if it is only the annotation-processing classpath. Additionally, the metadata API was recently moved from `kotlinx.*` to `kotlin.*`, and using reflection means we can function with either version. Fixes #1440. PiperOrigin-RevId: 635615798
AutoBuilder clients that don't use Kotlin shouldn't have to have the Kotlin runtime on their classpath, even if it is only the annotation-processing classpath. Additionally, the metadata API was recently moved from `kotlinx.*` to `kotlin.*`, and using reflection means we can function with either version. Fixes #1440. PiperOrigin-RevId: 635615798
AutoBuilder clients that don't use Kotlin shouldn't have to have the Kotlin runtime on their classpath, even if it is only the annotation-processing classpath. Additionally, the metadata API was recently moved from `kotlinx.*` to `kotlin.*`, and using reflection means we can function with either version. Fixes #1440. PiperOrigin-RevId: 635615798
AutoBuilder clients that don't use Kotlin shouldn't have to have the Kotlin runtime on their classpath, even if it is only the annotation-processing classpath. Additionally, the metadata API was recently moved from `kotlinx.*` to `kotlin.*`, and using reflection means we can function with either version. Fixes #1440. PiperOrigin-RevId: 635615798
Thanks for addressing this! How often is auto-value released? |
The newly-released 1.11.0 includes this change. |
Getting this warning(->error) since I bumped to their latest version, some Google libs using auto-value-1.10.1, e.g. com.google.cloud:google-cloud-build (not the only one impacted).
Bumping Kotlin to its latest version fixes the issue.
The text was updated successfully, but these errors were encountered: