-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use reflection to avoid referencing the Kotlin metadata API directly.
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
- Loading branch information
1 parent
29f739b
commit e201492
Showing
4 changed files
with
232 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.