Fixed lack of Main-Class attribute when using gradle buildscript.