Gradle Build Failed Error: package javax.servlet does not exist
Usually you would use providedCompile
. Something like:
providedCompile group: 'javax.servlet', name: 'javax.servlet-api', version: '3.0.1'
Then your app will compile, but gradle won't include the servlet api in the final war file.