Customize applicaiton.xml

How do I customize an application.xml element with gradle? Specifically, the library-directory tag.