title: Gradle - Java compile ignoring non-java source files
body: <p>I have some .properties files along with .java files in the java project. When Gradle compiles it seems to be only taking .class file and ignoring the .properties files &amp; .csv files while making the jar. </p>
  
  <p>Can anyone let us know how to get the .properties files, .csv files also gets compiled into the classes folder?</p>
  
  <p>For example, if my project has the following files,</p>
  
  <pre><code>"src/main/java/com/spcapitaliq/test/Test.java"
  "src/main/java/com/spcapitaliq/test/Test.properties"
  "src/main/java/com/spcapitaliq/test/Test.csv"
  </code></pre>
  
  <p>I am seeing only the Test.class in the classes folder not the Test.properties &amp; Test.csv files. Can you let me know how to include the .properties files &amp; .csv files during the gradle compilation process. In eclipse, its bringing both but gradle compile is ignoring that.</p>
  
  <p>The following is my  SourceSet entry in "gradle.build" file,</p>
  
  <pre><code>sourceSets
      {
          main
          {
              java
              {
                  srcDir 'src/main/java’
              }
              resources
              {
                  srcDir 'src/main/resources'compileClasspath = configurations.runtime + fileTree(dir:"$project.HOME_DIR/$project.SERVICE_NAME/lib", includes: ['*.jar'])
              }
      }
  </code></pre>