Only consider Java sources when determining if a sourceset has sourcefiles.

Fixes #7.
Merge pull request #8 from eveoh/fb-master_fix-groovy-sourcesets

Only consider Java sources when determining if a sourceset has sourcefiles.