Gradle ShadowJar with Other SourceSet Resources -


i using shadowjar gradle plugin build jar containing of source files in src/main/java directory , other jar files in lib directory , working fine. need shadowjar task, devshadowjar task, instead of pulling in json file in src/main/resources folder, pull in json file in src/dev/resources folder.

i added build.gradle file define dev source set:

sourcesets {     dev } 

but not sure how create devshadowjar task use dev json resource instead of json resource file located in src/main/resources.


Comments