Gradle 4.2.1 fully supports building and running Java 9 applications with major JDK distributions including Oracle JDK9, OpenJDK9, and Azul JDK9, as well as cross-compilation targeting JDK8. The post covers the state of Java Platform Module System (Jigsaw) support, explaining how to configure Gradle to use modulepath instead of classpath. It also highlights how Gradle's Java Library Plugin (introduced in 3.4) provides encapsulation benefits similar to Java modules by separating api and implementation dependencies, and provides a mapping between Gradle dependency configurations and Java module declarations.
Table of contents
Table of ContentsIntroductionWhat Gradle supports as of version 4.2.1 #Java Modules aka Jigsaw Support #Achieving encapsulation with the Java Library Plugin #Next Steps #DiscussSort: