11

Gradle: how to get default resources output dir?

println sourceSets.main.resources.outputDir

Error:

Needs to set a non-null value before it can be retrieved
eastwater
  • 781
  • 1
  • 10
  • 28

1 Answers1

20

Try this :

println sourceSets.main.output.resourcesDir

Source

ToYonos
  • 14,576
  • 2
  • 40
  • 62