Example example_gradle-project

Part of the full Java 9 Jigsaw modules example suite.

Authors

Migrated for Java Modules support documentation of Apache MavenTM in the course of the Maven Support & Care program by Gerd Aschemann (and other team members) as forked repository. Please add discussions, requirements, bugfixes, etc. to the fork instead of the original.

What is this example about?

Modules in this example

  • moda, modb, modc, modfacade, modmain, modmainbehindfacade

  • modmain has a Main class which is started in run.sh

This example has the same content like example_requires_exports_requires-transitive_exports-to. The only difference is that this example here is built with Gradle.

Module Dependency Graph, created with DepVis

without facade modules

Example’s Module Dependency Graph

withfacade modules

Example’s Module Dependency Graph

Example shows …​

  1. how to build a multi-module application with Gradle 4.2.1 (including clean, build, test, run).

See also

Output and Testing

This example does not use golden master testing because Gradle output includes timestamps, download progress messages, absolute file paths, and version information that varies between runs. See the golden master testing section in the main README for more information.