fileFilter property #918
Replies: 1 comment
-
Hi, Could you please fill me with gradle version you're using with which Java version? This is important as Groovy version used in Gradle scripts is dependent on Gradle version. The field type is defined as In this case Groovy behind the DSL language in an example provided used has less ability to properly convert random lambda to a target type. I suggest to create an anonymous class to pass the filter. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I cannot seem to get
fileFilter
to work the way I want (or at all, for that matter). Can anybody show me a working gradle build script that utilizes fileFilter to only process *.json files? I was hoping something simple like this would allow me to generate classes for all the schema under the specified directory without failing on the non*.json
files:... but this just leads to problems not recognizing the lambda as a FileFilter. You can cast it to FileFilter which leads to problems with serialization. Casting as serializable yields still more problems. I give up. How do I use
fileFilter
? I've tried creating a hard implementation class ofFileFilter
in the gradle script, also no luck.Beta Was this translation helpful? Give feedback.
All reactions