I’m trying to use * as generic folder but it doesn’t work. I have the following config:
sourceSets {
main {
resources { srcDirs = ['app/main/*/resources'] }
}
}
Any idea?
I’m trying to use * as generic folder but it doesn’t work. I have the following config:
sourceSets {
main {
resources { srcDirs = ['app/main/*/resources'] }
}
}
Any idea?
Completely untested, but hopefully works or gives you something to build from.
sourceSets {
main {
resources { srcDirs = [fileTree(dir: 'app/main').matching { include '*/resources' }] }
}
}