title: gradle - replace text inside the XML file
body: <p>I would like to replace some keywords(kind of variables) inside the XML. We are migrating Ant build to Gradle. One of the files is XML which contains some keywords, something like ${FILE_ID}, ${GROUP_ID}. I need to read this XML file and replace those keywords with actual values.</p>
  
  <pre><code>def dest = file("pom/module-pom.xml")
  def text = new File('pom/dependencies.pom').text
  text = text.replaceAll("${GROUP_ID}", "${groupId}")
  dest.write(text, "UTF-8")
  </code></pre>
  
  <p>The problem is that Gradle recognizes '${GROUP_ID}' as gradle property. Is there a way to have Gradle treat this as a string?</p>
  
  <p>Thanks.</p>