I need to understand purpose of gradle

I start make project with gradle, but I can’t understand purpose of gradle and how to use it
I have two question,

  1. If I’m making web app, Is gradle’s purpose do just make war file using build.gradle file finally?

  2. Will paths(src/main/webapp, src/test/webapp, etc) under web project be made by I want? and Must I have to define newly paths into build.gradle file?

I am sure the guide Building Java Web Applications will answer your questions. Check it out!

I gained knowledge of gradle