Post Page Advertisement [Top]



Click here to send WhatsApp On Unsaved Mobile Numbers For Free


To create .war or .jar file need to run some simple commands in your root location of your Spring Boot gradle project.


Make sure to first clean your project if any old build available. 

To clean your spring boot gradle project make sure to run the following command in your terminal or command prompt:

gradlew clean

The above command will delete the build folder if any in your project.


To cerate the .war file run the following command in your terminal or command prompt:

gradlew bootWar


The above command will generate a new folder, in your spring boot gradle poject root folder, with the name of build. And, in the build folder you will find libs folder in which you will able to find the newly generated .war file.


To create an executable .jar file run the following command in your terminal or command prompt:

gradlew bootJar


When you run the above command in your terminal or command prompt then it will generate the required .jar file.


No comments:

Post a Comment

Bottom Ad [Post Page]

rrkksinha.