There is a class abc.something.MyComponent
that is used by some legacy code, but we want to avoid using it in newly created code.
I'm thinking about something like maven-enforcer-plugin
with additional option to create a list of "allowed violations", because it is not possible to remove all usages instantly.
What is appropriate approach to add rules of a certain class usage in Java project?