# Is it possible to make a web application with java in gradle?

**URL:** <https://discuss.gradle.org/t/is-it-possible-to-make-a-web-application-with-java-in-gradle/43177>\
**Category:** Help/Discuss\
**Created:** [June 22, 2022, 3:56pm UTC](https://discuss.gradle.org/t/is-it-possible-to-make-a-web-application-with-java-in-gradle/43177 "2022-06-22T15:56:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JjersaR](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@JjersaR](https://discuss.gradle.org/u/JjersaR)\
**Post date:** [June 22, 2022, 3:56pm UTC](https://discuss.gradle.org/t/is-it-possible-to-make-a-web-application-with-java-in-gradle/43177/1 "2022-06-22T15:56:46Z")

</div>

I am taking a Java course, I am starting to use Java SE and glassfish, the course uses maven, but I use gradle for my projects, my question is: how can I “generate” the structure of a Java web using gradle? Because I use neovim to program in linux.

---

<div class="post-metadata">

**Author:** ![Vampire](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/vampire/32/9082_2.png) [@Vampire](https://discuss.gradle.org/u/Vampire)\
**Post date:** [June 22, 2022, 4:14pm UTC](https://discuss.gradle.org/t/is-it-possible-to-make-a-web-application-with-java-in-gradle/43177/2 "2022-06-22T16:14:27Z")

</div>

Gradle does not have the possibility to generate layouts other than what the `init` task provides.  
It is not yet extensible like Maven archetypes.  
But maybe you find a template out there, or alternatively just write your build as you need and want it, using [the `war` plugin](https://docs.gradle.org/current/userguide/war_plugin.html) for example.

---

<div class="post-metadata">

**Author:** ![JjersaR](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@JjersaR](https://discuss.gradle.org/u/JjersaR)\
**Post date:** [June 22, 2022, 4:35pm UTC](https://discuss.gradle.org/t/is-it-possible-to-make-a-web-application-with-java-in-gradle/43177/3 "2022-06-22T16:35:33Z")

</div>

Thanks for your answer, I will see about the plugin, I did not know about it.
