concept Jetty plugin in category gradle

This is an excerpt from Manning's book Gradle in Action - corrected 9052019.
The Jetty plugin works great for local web application development. However, you may use a different Servlet container in your production environment. To provide maximum compatibility between runtime environments early on in the software development lifecycle, look for alternative embedded container implementations. A viable solution that works very similarly to Gradle’s standard Jetty extension is the third-party Tomcat plugin.
Let’s assume you’re not happy with the default values the Jetty plugin provides. Another application is already running on port 8080, and you got tired of typing in the long context path. Just provide the following configuration:
jettyRun { httpPort = 9090 contextPath = 'todo' }Great, you achieved what you wanted. Starting the application with this configuration will expose the URL http://localhost:9090/todo. There are many more options for configuring the Jetty plugin. A great place to start is with the API documentation of the plugin. This will help you understand all available configuration options.