How to configure Gradle for a web application?

Good evening, please tell me how to configure gradle script to compile and deploy on tomcat web application. Use servlet and jstl and until we have a script, but then can't figure out what to do...

apply plugin: 'java'
apply plugin: 'war'

sourceCompatibility = 1.8

repositories {
mavenCentral()
}

dependencies {
 providedCompile 'javax.servlet:javax.servlet-api:3.1.0'
 testCompile group: 'junit', name: 'junit', version: '4.11'
}
July 9th 19 at 12:51

Find more questions by tags GradleJava