This repository contains all the example code from the Java 9 Modularity book. The examples are grouped by chapter in the book:
- Modules and Modular JDK
- Working with Modules
- Modularity Patterns
- Advanced Modularity Patterns
- Migration Without Modules
- Migration to Modules
- Migration Case Study: Spring and Hibernate
- Library Migration
- Build Tools and IDEs
- Testing Modules
Most examples contain a
run.sh file to compile and run the example.
The scripts are tested on Mac OS and Linux. Windows users can use the Linux Subsystem for Windows, or use Cygwin to run the scripts.
Some examples demonstrate errors, which means that compiling or running them may fail on purpose.
A README is available in each example directory to explain the example.