Add maven profile for -Xlint:deprecation compiler option#12628
Add maven profile for -Xlint:deprecation compiler option#12628leveyja wants to merge 1 commit intotrinodb:masterfrom
Conversation
914f05b to
7e65dde
Compare
|
Failed due to |
Compiling with ./mvnw [...] -Pdeprecation will warn about deprecated method and class usages.
7e65dde to
ff78bf1
Compare
|
Looks ready to merge - any suggestions who should give the final 👍 ? |
hashhar
left a comment
There was a problem hiding this comment.
Unused profiles aren't useful - since people won't generally run with this profile.
Maybe you can add a new job to ci.yml that prints out a deprecation log with using this profile for running maven-checks.
But I think #12629 is the way to go instead - i.e. fix/disable current deprecations and then enable -Xlint:deprecation -Werror in the maven-checks job.
It could be added to the |
|
This pull request has gone a while without any activity. Tagging the Trino developer relations team: @bitsondatadev @colebow @mosabua |
Description
Adding maven profile to add
-Xlint:deprecationcompiler option.Compiling with ./mvnw [...] -Pdeprecation will warn about deprecated method and class usages.
Improvement
Build compiler change to enable verbose deprecation warnings during compilation.
Adding a build option to enabling warnings to be printed during the build.
Related issues, pull requests, and links
Documentation
(:white_check_mark:) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.
Release notes
(:white_check_mark:) No release notes entries required.
( ) Release notes entries required with the following suggested text: