diff --git a/packages/nx-gradle/src/generators/application/schema.json b/packages/nx-gradle/src/generators/application/schema.json index 5c9260724..3fbd6f9fc 100644 --- a/packages/nx-gradle/src/generators/application/schema.json +++ b/packages/nx-gradle/src/generators/application/schema.json @@ -68,6 +68,10 @@ "packaging": { "description": "Packaging of the project", "type": "string", + "enum": [ + "jar", + "war" + ], "default": "jar" }, "framework": { diff --git a/packages/nx-maven/src/generators/application/schema.json b/packages/nx-maven/src/generators/application/schema.json index 06b8a0a0a..acc8aff35 100644 --- a/packages/nx-maven/src/generators/application/schema.json +++ b/packages/nx-maven/src/generators/application/schema.json @@ -68,6 +68,10 @@ "packaging": { "description": "Packaging of the project", "type": "string", + "enum": [ + "jar", + "war" + ], "default": "jar" }, "framework": {