Fixes #1766. Removes "No main class detected" warning.
Merge pull request #1766 from sbt/fix/1766

Lots of "No main class detected" warnings since 0.13.7