Sahil Chabria
Sahil Chabria

Reputation: 13

Create executable war with embedded tomcat 9 with gradle

I have built a web application using spring and gradle which I am running on Tomcat, however I want to create a war file which will initialize the web application and tomcat all in one using an embedded tomcat 9. What is the best to create this? As I am struggling to correctly achieve this.

Upvotes: 0

Views: 396

Answers (1)

Giga Kokaia
Giga Kokaia

Reputation: 929

I assume its spring boot application. To get executable jar file execude bootJar task:

gradle bootJar

or run directly war file

java -jar app.war

Upvotes: 1

Related Questions