Skip to content

Instantly share code, notes, and snippets.

@zlwu
Last active February 15, 2016 14:02
Show Gist options
  • Save zlwu/090692fbd0f7578f3112 to your computer and use it in GitHub Desktop.
Save zlwu/090692fbd0f7578f3112 to your computer and use it in GitHub Desktop.
read properties in gradle build
def ndkRoot = '/usr/local/android/ndk'
project.rootProject.file('gradle.properties').withReader { reader ->
def userProps = new Properties()
userProps.load(reader)
ndkRoot = properties.get('ndk.dir')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment