-1

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?

wipcrep
  • 19
  • 1
  • 7

1 Answers1

0

You need to use ** instead of *, the single asterisk is used for globbing files within a single directory, the double is for nested directories. Note that if you have multiple directories called resources nested inside app/main/, this will find all of them.

sourceSets {
  main {
    resources { srcDirs = ['app/main/**/resources'] }
  }
}

See second answer on this question for more info

braebdeb
  • 219
  • 2
  • 11