Need a way to fail on deprecation warning
I'm looking for a tool or technique that I can use to fail a build if a deprecation warning is found. The code in question is part of a tutorial and examplar suite that we want to ensure is always up-to-date and that we never release it with deprecated methods or classes being used.
So far I can find no way to configure javac to fail on warning, nor can I find a scanning tool that I can slot into the build process. Any suggestions welcome!