Chapter 3. Building a Web Application
Now that we have seen the ease of using Gradle for building a command-line Java application, we shouldn't be surprised to know that building web applications based on Java servlet specification is also equally easy with Gradle.
In this chapter, we will build a simple web application first, which is distributed as a WAR
file that can be deployed to any servlet container. Then, we will take a look at how dependencies and repositories are configured in a build file.