I am using gradle Java plugin. I see that gradle does not copy hidden (starting with .) files from test/resources directory to build/resources/test directory. Ant has an option to use defaultExcludes = 'no' to force copy of all files. How do I do that with gradle?
It is not an issue with every hidden resource file but only the ones present here are excluded by default.
You can do the following:
org.apache.tools.ant.DirectoryScanner.removeDefaultExclude("**/.gitignore")
For more details, refer this Gradle issue
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With