Our great sponsors
-
restrict-imports-enforcer-rule
Gradle plugin & Maven Enforcer rule that restricts usage of unwanted imports in Java, Kotlin and Groovy source files.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Check out Google’s open source Error Prone. It hooks into compilation with additional bug patterns, including warnings for use of java.util.Date and obsolete JDK APIs. You can also write your own checks as well as automate refactorings, for example gradle-baseline adds many more bug patterns and cleanups.
If your project is Maven-flavored, you can try this enforcer rule. Now you and your collaborators will have warnings on any build.
This is another option: https://github.com/gaul/modernizer-maven-plugin