Arvind Vavdiya
Arvind Vavdiya

Reputation: 23

How to create .war file in liferay 7 with gradle?

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

Answers (2)

Coder3234
Coder3234

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

JBirdVegas
JBirdVegas

Reputation: 11403

apply plugin: 'war' should be all you need.

Reference: https://docs.gradle.org/current/userguide/war_plugin.html

Upvotes: 1

Related Questions