Running the engine class through Gradle

Have you read the documentation of our gradle plugin? What you’re asking for is built in.