This repo has custom validations implementation when we need to make one of the field is mandatory only if another field has populed with specific value else it is optional. In similar way, two field validations.
- Java JDK 8
- Any java editors
- The project uses Lombok so the Lombok plugin needs to be installed
Idea Menu > Preferences > Plugins > (Search In Repositories)
- Enable the annotations processing in
Idea Menu > Preferences > Build, Execution, Deployment > Compiler > Annotation Processors
To build the application, run the following command in the root project folder:
Linux and MacOS:
./gradlew clean build
Windows:
gradlew clean build
This will create the application artifact (jar) and a docker image.
You can bring up the application either by running the jar or by running the docker image.
java -jar <jar_name>