As the Java library is not modular, we will make use of the concept of automatic modules as explained in Chapter 3, Modular Programming. The JARs belonging to the library are placed on the module path of the application, and the application then declares a dependency on the JARs by using the name of the JAR as its module name. This way, a JAR file automatically becomes a module and is hence called an automatic module.
The Maven dependency for the Java library is:
<dependency> <groupId>com.mashape.unirest</groupId> <artifactId>unirest-java</artifactId> <version>1.4.9</version> </dependency>
As we are not using Maven in our samples, we have downloaded the JARs into the folder, chp11/6_unirest_http_demo/mods.
The module definition ...