GX-1316: modify gradle to write generated pom file