With the second release the JDeps Maven Plugin allows the creation of flexible exemptions from build-breaking. This enables a self-paced migration away from dependencies of JDK-internal APIs that will be unavailable in Java 9.
Project Jigsaw brings strong encapsulation to Java 9, which will make many JDK-internal APIs unavailable and deprecate the others. JDeps Mvn is a Maven plugin that runs the JDK tool jdeps against your code base to warn you of problematic dependencies.
Redemption comes in four easy steps:
- identify your projects’ problematic dependencies
- create a plan to move away from them
- prevent relapses
- do the same for your dependencies
The plugin helps with 1. and 3.; 2. shouldn’t be too hard in most cases but 4. might be. (You can hire me if you need help for that.)
The JDeps Maven Plugin will break a project’s build if it contains dependencies on JDK-internal APIs. This helps to prepare for Java 9, where these dependencies will be unaccessible.