npm install -g generator-ksmodule
yo ksmodule --module myModule --group com.mymodule --mainClass MyClassApplication
above command will generate
myModule
└── src
└── main
├── kotlin
│ └── com
│ └── mymodule
│ └── MyClassApplication.kt
└── resources
├── META-INF
│ └── spring-configuration-metadata-whitelist.properties
└── application.yml