Unable to set contextRoot in gradle ear

Hi all,
I am trying to generate ear file using gradle ear plugin, and the context-root is the default project-name, how can I set the context-root but not using the default value? Below is the build.gradle file and generated application.xml file. Thanks.