diff --git a/simple-module-example/README.md b/simple-module-example/README.md index e6af8a3..582908f 100644 --- a/simple-module-example/README.md +++ b/simple-module-example/README.md @@ -1,16 +1,18 @@ -# Simple Java 11 example +# Simple Java 11 modules example This simple example shows modular java 11 gradle project. -Project requires __JDK 10__ or __JDK 11__ and __gradle 4.8.1__ or later. +Main application uses 3 modules as shown in architecture diagram. -### Compile & Run with Java 10/11 +![architecture](docs/architecture-01.svg) + +### Compile & Run with Java 11 ```gradle clean build installDist distZip``` ```./application/build/install/application/bin/application``` ### Run optimized build by jlink After gradle full build, run ```./jlink.sh``` script. -This scipr will create customized JRE build with application modules. +This script will create customized JRE build with application modules. Go to directory ```application/build/app-runtime-distro/bin``` and start application using ```./launch``` script. Directory ```application/build/app-runtime-distro``` contains complete -runtime environment. +runtime environment: JRE + modules (~75M). diff --git a/simple-module-example/docs/architecture-01.graphml b/simple-module-example/docs/architecture-01.graphml new file mode 100644 index 0000000..4a07a40 --- /dev/null +++ b/simple-module-example/docs/architecture-01.graphml @@ -0,0 +1,152 @@ + + + + + + + + + + + + + + + + + + + + + + + + application +module + + + + + + + + + + + + + + + + + + service-compute +module + + + + + + + + + + + + + + + + + + service-compute-async +module + + + + + + + + + + + + + + + + + + service-tasks +module + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/simple-module-example/docs/architecture-01.svg b/simple-module-example/docs/architecture-01.svg new file mode 100644 index 0000000..0e1bf32 --- /dev/null +++ b/simple-module-example/docs/architecture-01.svg @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + application + module + + + + + + + service-compute + module + + + + + + + service-compute-async + module + + + + + + + service-tasks + module + + + + + + + + + + + + +