Over a million developers have joined DZone.

Java Components: Solving the Puzzle With Jigsaw and Gradle

Learn how you can model your Java modules with Gradle.

· Java Zone

Microservices! They are everywhere, or at least, the term is. When should you use a microservice architecture? What factors should be considered when making that decision? Do the benefits outweigh the costs? Why is everyone so excited about them, anyway?  Brought to you in partnership with IBM.

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.


Discover how the Watson team is further developing SDKs in Java, Node.js, Python, iOS, and Android to access these services and make programming easy. Brought to you in partnership with IBM.

Topics:
jigsaw ,java ,java 9 ,gradle

Published at DZone with permission of Miko Matsumura. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}