Reputation: 23
I am developing liferay7 application with gradle and eclipse editor. Now I want to generate .war file for tomcat. How can I create .war file?
Upvotes: 2
Views: 1764
Reputation: 23
For Liferay 7 I think we should use .jar files as stated here :
Once you finish developing your project, you can use Gradle to build your project’s JAR file and use Blade CLI to deploy your module to Liferay Portal’s module framework.
Upvotes: 0
Reputation: 11403
apply plugin: 'war'
should be all you need.
Reference: https://docs.gradle.org/current/userguide/war_plugin.html
Upvotes: 1