Java Components: Solving the Puzzle With Jigsaw and Gradle
Learn how you can model your Java modules with Gradle.
Join the DZone community and get the full member experience.Join For Free
Any large Java project will suffer without a sensible approach to modularization. Java 9 will introduce Jigsaw, a simple model that supports a separation of API and implementation for Java components.
As a member of the Jigsaw JSR, Gradle Inc. is building a Gradle model to provide a highly Jigsaw-compatible component model that is already available to users of Java 7 and 8 and will be available to Java 9 users when it is released.
In this talk, you will learn how you can model your Java modules with Gradle; enforce modularization for Java 8 and below; and build variants of your modules for Java 6, 7, 8, and 9. Gradle will make it very easy for you to work against multiple JDK versions. We will also demonstrate the significant build time performance improvements you will get by the latest Gradle.
Published at DZone with permission of Miko Matsumura. See the original article here.
Opinions expressed by DZone contributors are their own.