Can gradle create META-INF, WEB-INF folder and web.xml automatically?

I am newbie. i would like to start a web application with gradle. The version i am using is v3.1

i use war plugin, but it does not create META-INF, WEB-INF folder and web.xml after running ./gradlew build.

do i need to manually create those folders and file or gradle has a way that i do not know yet to create them automatically?

Hi,

No, these file are not generated automatically, the war plugin only picks up the files you create. You’ll find the details in the [war plugin documentation] (https://docs.gradle.org/current/userguide/war_plugin.html#sec:war_default_settings).

1 Like