title: How do I add a .properties file into my WAR using gradle?
body: <pre><code>WAR
     - META-INF
     - WEB-INF
         - classes
             - META-INF
                 - myApp.properties &lt;-- Needs added
  </code></pre>
  
  <p>How do I add a .properties file into my WAR using gradle?
  The file was later introduced into the project but doesn't
  get added? </p>
  
  <p><strong>build.gradle</strong></p>
  
  <pre><code>import org.apache.commons.httpclient.HttpClient
  import org.apache.commons.httpclient.methods.GetMethod
  
  group = 'gradle'
  version = '1.0'
  
  apply plugin: 'war'
  apply plugin: 'jetty'
  apply plugin: 'eclipse'
  
  eclipseProject 
  {
    projectName = 'crap'
  }
  
  defaultTasks 'build'
  
  dependencies 
  {
     //all my dependencies
  }
  
  war 
  {        
    classpath fileTree('lib')
  }
  
  jar.enabled = true
  
  [jettyRun, jettyRunWar]*.daemon = true
  stopKey = 'stoppit'
  stopPort = 9451
  httpPort = 8080
  scanIntervalSeconds = 1
  </code></pre>