assemble.gradle now sets default mainClassName if not provided.