title: Gradle: Run multiple webapps with Jetty
body: <p>I want to run two webapps created by the same Gradle project into a Jetty server. Let's call these two webapps "ninja" and "warrior".</p>
  
  <p>Both webapps are very similar, they only differ in the application-context file (referenced in the web.xml file) and resources.</p>
  
  <p>In order to deploy them, these two options are accepted:</p>
  
  <ul>
  <li>Use different ports:</li>
  </ul>
  
  <pre>
  http://www.example.com:8080/app (ninja webapp)
  http://www.example.com:8081/app (warrior webapp)
  </pre>
  
  <ul>
  <li>Use different paths:</li>
  </ul>
  
  <pre>
  http://www.example.com:8080/ninja_app
  http://www.example.com:8080/warrior_app
  </pre>
  
  <p>Having one or two instances of Jetty should be ok for this project.</p>
  
  <p>This is my project layout:</p>
  
  <pre>
  /src/main/java
  /src/main/resources
  /src/main/webapp (ninja webapp)
  /src/main/webapp-warrior
  </pre>
  
  <p>First question: How to create two war files with Gradle?</p>
  
  <p>Second question: How to deploy the two war files in the Jetty Server with Gradle?</p>