Skip to main content

Generate Model

The generateModel | gm task will generate a class and interface in model layer, this task has one required parameter name.

   gradle generateModel --name=[modelName]
gradle gm --name [modelName]

This task will generate something like that:

πŸ“¦domain
┣ πŸ“‚model
┃ ┣ πŸ“‚src
┃ ┃ ┣ πŸ“‚main
┃ ┃ ┃ β”— πŸ“‚java
┃ ┃ ┃ ┃ β”— πŸ“‚[package]
┃ ┃ ┃ ┃ ┃ β”— πŸ“‚model
┃ ┃ ┃ ┃ ┃ ┃ ┣ πŸ“‚gateways
┃ ┃ ┃ ┃ ┃ ┃ ┃ β”— πŸ“œModelRepository.java
┃ ┃ ┃ ┃ ┃ ┃ β”— πŸ“œModel.java
┃ ┃ β”— πŸ“‚test
┃ ┃ ┃ β”— πŸ“‚java
┃ ┃ ┃ ┃ β”— πŸ“‚[package]
┃ ┃ ┃ ┃ ┃ β”— πŸ“‚model
┃ β”— πŸ“œbuild.gradle