Skip to content

Instantly share code, notes, and snippets.

@jmatsu
Last active March 27, 2017 04:15
Show Gist options
  • Save jmatsu/1846d733d68b90890d401b35d912ee44 to your computer and use it in GitHub Desktop.
Save jmatsu/1846d733d68b90890d401b35d912ee44 to your computer and use it in GitHub Desktop.
def loadProperties(filename, properties) {
file("$rootDir/$filename").withInputStream {
properties.load(it)
}
}
ext.properties = new Properties()
loadProperties("version.properties", ext.properties)
# properties.hogehoge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment