java - How to add resource folder in gradle and other resource folder -
i have project structure in below manner
src---- | pdstat--------------------------------------- resources/test.properties | | b c d resource[having xsd file]
i need create jar file include everything.my problem after making jar file doesn't include resource folder
project.jar | -----------------psdstat | ------------------test.properties[without resources folder]
and not including resources[xsd file] folder inside medstat. ant project , converting gradle.i can't change structure of project
please suggest me on this.
i did in below way , working fine
task copynonjavafile<< { copy{ from("src"){ exclude '**/*.java' } into("build/classes/main") } } sourcesets { main { java { srcdir 'src' } } test { java { srcdir 'test' } } } jar.dependson copynonjavafile
Comments
Post a Comment