GrChaos is a powerful runtime howswap groovy application framework. It is a huge upgrade of chaopeng/groovy-hotswap-demo.
- download GrChaos-Starter
- add
bin/grchaos-starter
to $PATH - run
grchaos-starter
in the dir you want to create a GrChaos App - add GrChaos Module Class, Example
- add Module Class full classname to
projectName-lib/src/main/resources/application.conf
- in IDEA add a run configure: mainClass=
me.chaopeng.grchaos.application.GrChaosApplicationMain
in lib module - run
gradle distZip
to build the project.application.conf
is not include in the build, you can use program param to define a different configure in production
Here is a sample project to show how to build a howswapable webservice.
.
├── build.gradle # root build script
├── libs.gradle # libraries
├── settings.gradle # subproject define
├── projectName-app # reloadable sources, project depends on projectName-lib
└── projectName-lib # not reloadable sources