Recently, I started working on a multi module spring boot gradle project. Am new to gradle and also to the team but I have some experience with Spring boot.
The structute is like Main Project do not contain java files and has only gradle and config info, then its sub project contain spring boot project. While I try to run the project, I get Main Class not found error even though the class exists
I know there must be some configuration done in order to run this but I am unable to identify how to get the details.
This is an old project and no one has any details. Can someone help on how to dig gradle files to get the configuration or atleast start the project?
Edit:
Okay so, I somehow, decided to ignore IDEs and played around with commands. I came to a point that yml files in root folder is not recognized by jar(created from gradle build). as mentioned above, Spring boot project is in child project, where as config(yml files) in root foler.
I added --spring.config.location to java -jar but then understood the jar is generated without dependencies. Any idea how to add them in classpath or build the jar with dependencies?
@springbootapplicationannotated class. Here is main function - GolamMazid Sajib