I want to run two webapps created by the same Gradle project on a Jetty server. Let me call these two webapps “ninja” and “warrior”.
Both web applications are very similar, they differ only in the context application file (see web.xml file) and resources.
For their deployment, these two options are accepted:
http://www.example.com:8080/app (ninja webapp)
http://www.example.com:8081/app (warrior webapp)
http://www.example.com:8080/ninja_app
http://www.example.com:8080/warrior_app
Having one or two instances of Jetty should be in order for this project.
This is my project layout:
/ src / main / java
/ src / main / resources
/ src / main / webapp (ninja webapp)
/ src / main / webapp-warrior
: Gradle?
: Jetty Gradle?