I'm trying to make a servlet application with gradle as build system. The problem is that gradle cannot find javax.servlet, I'm getting this error:
Could not find javax.servlet:javax.servlet-api:4.0
I downloaded Tomcat9 from the official site and unpacked it to ~/opt/tomcat9. There is ~/opt/tomcat9/lib folder, where servlet-api.jar is located. I guess that jar file is what gradle looking for, but how do I specify the path to it?