Mark methods using squareup javapoet as deprecated #559
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The original square/javapoet project has been marked deprecated for 4 years now, and there's a successor at https://github.com/palantir/javapoet that is actively maintained.
In #472 this project started supporting both versions (they are at non-conflicting coordinates). It's now been 6 months and the new version of Goethe has trickled through the ecosystem.
With this change, we mark the old square versions as deprecated, and declare this project's intention to eventually remove them. An example PR that does remove them is at #558 but I think we need a bit more time internally to remove these references before pulling the plug.
And even if there is little benefit to pulling the plug, I think the deprecation warning is important. This makes it clear to new callers who see multiple method overloads which one they should be using. One reason is that the old square release contains a perf issue with an unreleased fix:
https://github.com/square/javapoet/pull/828
that is released on the Palantir successor.