Gradle build to generate both jar and war for springboot Application

I have Springboot application , which is deployed to tomcat as war. Gradle build has apply plugin as war and bootwar is executed. Same Application I wanted to deploy in docker , so want to generate as jar. if manually called bootjar ,then jar is created. Is it possible to generate both war and jar while triggering gradle build.