Skip to main content

Generate Entry Point

The generateEntryPoint | gep task will generate a module in Infrastructure layer, this task has one required parameter type.
Whether you'll use generic one also parameter name is required.

gradle generateEntryPoint --type=[entryPointType]
gradle gep --type [entryPointType]
Reference for entryPointTypeNameAdditional Options
genericEmpty Entry Point--name [name]
asynceventhandlerAsync Event Handler--eda [true-false] --tech [rabbitmq-kafka-rabbitmq,kafka] Default: rabbitmq
graphqlAPI GraphQL--pathgql [name path] default /graphql
kafkaKafka Consumer
mqJMS MQ Client to listen messages
restmvcAPI REST (Spring Boot Starter Web)--server [serverOption] default undertow --authorization [true,false] --from-swagger swagger.yaml
rsocketRsocket Controller Entry Point
sqsSQS Listener
webfluxAPI REST (Spring Boot Starter WebFlux)--router [true, false] default true --authorization [true,false] --from-swagger swagger.yaml --versioning [HEADER, PATH,NONE] default NONE

Additionally, if you'll use a restmvc, you can specify the web server on which the application will run. By default, undertow.

   gradle generateEntryPoint --type=restmvc --server=[serverOption]
gradle gep --type=restmvc --server=[serverOption]
Reference for serverOptionName
undertowUndertow server (default)
tomcatTomcat server
jettyJetty server

This task will generate something like that:

πŸ“¦infrastructure
┣ πŸ“‚entry-points
┃ β”— πŸ“‚generic
┃ ┃ ┣ πŸ“‚src
┃ ┃ ┃ ┣ πŸ“‚main
┃ ┃ ┃ ┃ β”— πŸ“‚java
┃ ┃ ┃ ┃ ┃ β”— πŸ“‚[package]
┃ ┃ ┃ ┃ ┃ ┃ β”— πŸ“‚generic
┃ ┃ ┃ β”— πŸ“‚test
┃ ┃ ┃ ┃ β”— πŸ“‚java
┃ ┃ ┃ ┃ ┃ β”— πŸ“‚[package]
┃ ┃ ┃ ┃ ┃ ┃ β”— πŸ“‚generic
┃ ┃ β”— πŸ“œbuild.gradle