Skip to content

Instantly share code, notes, and snippets.

@RX14
Created July 10, 2015 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save RX14/6e04cd9fc71c52191def to your computer and use it in GitHub Desktop.
Save RX14/6e04cd9fc71c52191def to your computer and use it in GitHub Desktop.
def propertyFile = file "src/main/resources/META-INF/some.properties"
def props = new Properties()
propertyFile.withReader { props.load(it) }
props.setProperty("version", project.version)
propertyFile.withWriter { props.store(it) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment