Glassfish usage with gradle

Hello everyone.
When I created the gradle framework for a web application with Java, in start spring io, there is in dependencies “providedRuntime” with tomcat, can you change that dependency for something from glassfish, I saw that tomcat supports some things and glassfish is more complete, and for a course I’m taking is necessary to use glassfish, can you change that dependency? For these projects I am using Linux with Neovim editor.
Thanks for reading.