Example example_gradle-project
Part of the full Java 9 Jigsaw modules example suite.
|
Authors
Originally written by Martin Lehmann, Kristine Schaal and RĂ¼diger Grammes (cf. original repository). 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.
Example shows …
-
how to build a multi-module application with Gradle 4.2.1 (including clean, build, test, run).
See also
-
https://dzone.com/articles/state-of-gradle-java-9-support?edition=334728
-
https://github.com/gradle-guides/building-java-9-modules.git (Note that this is still using Gradle 4.2, you need to change
gradle-wrapper.propertiesto downloadgradle-4.2.1-bin.zip)
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.