Generate Java Source from Eclipse Model(ecore and genmodel)

In command line creating java source as below
eclipse -noSplash -data … -projects … -model -application org.eclipse.emf.codegen.ecore.Generator model/test.genmodel

How to implement the same in gradle

Anyone can help on this ?