This repository contains example how to compile build and run java 9 modules using Jigsaw and Gradle.
dependency tree
+------+ +--------+ | main |--->| config | +------+ +--------+ | | | | +-------+ | | | | v v v +-------+ +--------+ | api |<--| impl | +-------+ +--------+
-
main requires: config, api
-
config:
-
requires: api, impl
-
exports to: main
-
-
impl:
-
requires: api
-
exports to: config
-
-
api exports to: impl, config, main
build and run
bash gradlew clean build; java -jar modules/main/build/libs/*.jar