I use NewRelic in my project. It needs newrelic.properties file with application token. I need to create several builds with different token. In gradle for genereting properties I use next snippet:
Properties props = new Properties()
props.setProperty("com.newrelic.application_token","MYTOKEN")
How can I save it to my app folder? I need "newrelic.properties" file with text "com.newrelic.application_token=MYTOKEN" in root folder.