0

I am using Spring boot version 2.1.1 and build tool as Gradle, I would like build the application as WAR and JAR at once. How would i do that?

Raja Ram
  • 33
  • 4
  • Have you taken a look at : https://stackoverflow.com/questions/23868580/one-spring-boot-project-deploy-to-both-jar-or-war – Yogesh_D Jun 14 '19 at 05:26
  • I would also add what kind of jar (executable/shaded jar) or war(deployable in tomcat, or executable) do you want. – Yogesh_D Jun 14 '19 at 05:27
  • I am using JAR in spring boot project. you can choice. – 0gam Jun 14 '19 at 07:54
  • That's not possible to have it at once because you can have only one artifact at a time. I'm not a Gradle user but with Maven you would do so using Maven profiles and call the build twic.e – Simon Martinelli Jun 14 '19 at 08:57

0 Answers0