Gradle doesn’t have a built-in provided configuration as shown in example on https://mvnrepository.com/.
The correct dependency declaration depends what you’re trying to do with this dependency. If you’re building a war with the war plugin, use providedCompile. Otherwise, compileOnly might be most appropriate, unless you’re doing something unusual with this dependency.
You just need to declare the dependency on the correct configuration. The mvnrepository.com examples are just using a template. They don’t take into consideration that the correct configuration might actually be different in the build tool. They also show the longer map form, group: 'javax.servlet.jsp', name: 'jsp-api', version: '2.2.1-b03', which can be shortened to 'javax.servlet.jsp:jsp-api:2.2.1-b03'.