Skip to content

Instantly share code, notes, and snippets.

@gwsu2008
Created November 4, 2019 06:17
Show Gist options
  • Save gwsu2008/6a3761676f968c9c066b6545a908bd66 to your computer and use it in GitHub Desktop.
Save gwsu2008/6a3761676f968c9c066b6545a908bd66 to your computer and use it in GitHub Desktop.
groovy-read-pom
def pom = new XmlSlurper().parse(new File('pom.xml'))
println 'my pom version ' + pom.version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment