CubaWarDistribution Error

Hi, I am unable to create war file using CubaWarDistribution
find the below code

task createWarDistr(dependsOn: [coreModule.buildWar, webModule.buildWar], type: CubaWarDistribution) {
appHome = ‘${app.home}’
singleWar = false

getting the following error

Caused by: groovy.lang.MissingPropertyException: Could not get unknown property ‘CubaWarDistribution’ for root project ‘keansa_cloud’ of type org.gradle.api.Project.
at org.gradle.internal.metaobject.AbstractDynamicObject.getMissingProperty(
at org.gradle.internal.metaobject.AbstractDynamicObject.getProperty(
at org.gradle.groovy.scripts.BasicScript.propertyMissing(
at org.gradle.groovy.scripts.Script.getProperty(
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$
… 58 more

Thanks Olga,

War created successfully but the issue with war is , it is working in tomcat but not in glassfish.
Can you give a hint here

Could you share the details of the issue: your Glassfish version and log files.

Hi Mallik,

There is no CubaWarDistribution task type in the platform. Try to use the buildWar task of CubaWarBuilding type.