I want to add a folder, containing some native libraries, as a runtime dependency.
I try the following syntax:
dependencies {
runtime files('path/to/libraries')
}
But instead the content of 'path/to/libraries' is added, while I need to have 'libraries' folder added.
FileCollections interface has filter method, so I tried to create file('path/to') collections and then filter out everything except 'libraries' folder, but the filter method doesn't allow to filter the resulting set, only the input patterns, so it didn't work in my case. So far I didn't find a way to do that. Maybe I use Gradle in a wrong way, but I do want to have this as a dependency. Any help is appreciated.