Overcome gradle "Dynamic properties are deprecated...mainClassName"