concept default convention in category gradle
appears as: default conventions, default conventions, The default convention

This is an excerpt from Manning's book Gradle in Action - corrected 9052019.
What exactly does that mean to your project? In addition to the conventions provided by the Java plugin, your project becomes aware of a source directory for web application files and knows how to assemble a WAR file instead of a JAR file. The default convention for web application sources is the directory src/main/webapp. With all the web resource files in the right location, your project layout should look like this: