This chapter covers:
- preparing and estimating a migration to Java 9 and beyond
- continually integrating your changes on the way to Java 9
- incrementally modularizing projects bottom-up, top-down, or inside-out
- generating module declarations with JDeps
- hacking third-party JARs with the
jar
tool
- publishing modular JARs for Java 8 and older
Navigation
Chapters 6, 7, and 8 discuss all the technical details behind migrating to Java 9 and turning an existing code base into a modular one. This chapter takes a broader view and looks at how to best compose these details into successful migration and modularization efforts.
- how to perform a gradual migration that cooperates well with your development process, particularly build tools and continuous integration (9.1)
- how to use the unnamed module and automatic modules as building blocks for specific modularization strategies (9.2)
- options for making JARs modular—yours or your dependencies' (9.3)
When you’re done with this chapter, you not only understand the mechanisms behind migration challenges and modularization features—you also know how to best employ them in your efforts.