I have some .properties files along with .java files in a java project. When the Gradle compilation seems like it only accepts the .class file and ignores the .properties and .csv files when creating the jar.
Can someone tell us how to get .properties files, CSV files are also compiled into the classes folder?
For example, if my project has the following files,
"src/main/java/com/spcapitaliq/test/Test.java" "src/main/java/com/spcapitaliq/test/Test.properties" "src/main/java/com/spcapitaliq/test/Test.csv"
I see only the Test.class class in the classes folder, and not the Test.properties and Test.csv files. Can you tell me how to include .properties and .csv files during the Gradle compilation process. In eclipse its merge, but Gradle compilation, ignores this.
Below is my SourceSet entry in gradle.build file,
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']) } }
java compilation gradle
Amjath sharar
source share