Migrating to Modules
summary
Live-coding shows a Java 8 command-line app that deserializes tweets with Jackson and is converted into a Java 9 module by adding module-info.java, using javac, jar, jdeps and the Java launcher; initial run fails on reflective access and is fixed by using opens vs exports; then Jackson jars become automatic modules, later rewritten with explicit module declarations and rerun; a trimmed runtime image is produced with jlink and everything works end-to-end.
AI-written summary · about
chapters (22)
- 0:00Intro
- 1:07Overview
- 2:28The Problem
- 3:01The Source Tree
- 4:32Compile
- 6:07Module Declaration
- 11:10Static Analysis
- 13:04Java C
- 15:38TweetSome Module
- 19:15Open Packages
- 20:46Demonstration
- 22:54Automatic Modules
- 26:06JadeEPS
- 32:15Add Modules
- 34:43Conclusion
- 37:28Automatic module names
- 40:23Intentional design decisions
- 42:38Can you open a specific module
- 44:43How to compile jars
- 46:08Versioning
- 48:03JavaFX
- 48:28Questions
related talks
49mTo JAR Hell And Back - A Live Migration to the Java 9 Module System
46mJava Modules in practice with Spring Boot
54mBeginning Java 9 Modules
47mMigrating to Modules
01h 02mJava 9 Modularity in Action
48mThe Java Module System in practice
49mKeeping up with Java
51mThe Java 9 Module System Beyond The Basics
