Beapi-io / spring-boot-starter-beapi

Springboot 'convention over config' starter for API Automation
Other
1 stars 1 forks source link

TASK : Scaffolding Command Script/Service #41

Open orubel opened 1 year ago

orubel commented 1 year ago

Creation of consolidated script for all scaffolding

beapi scaffold-controller full.class.name beapi scaffold-domain full.class.name beapi scaffold-connector full.class.name

orubel commented 1 year ago

Ok so solved this.

File that handles args and templating needs to exist as a 'service' which can be called from 'applications main method.

We move 'service' over via a gradle task (which happens prior to build) and args can be handled during build process (which naturally, this causes the files to miss initial build; this is intentional as files are only bootstrapped).

orubel commented 1 year ago

so upon further research, a task does need to be added to the application (as we have always thought), but it will be a 'JavaExec' task which will call gradle tasks in starter for 'controller-scaffold' or 'connector-scaffold' (we will deal with domain later).

Rather than 'services' we need to think about the functionality as LIBS.

orubel commented 1 year ago

would like to get this out of the demo application 'build.gradle'. Need to research this.