build.gradle - How can I specify gradle project properties in gradle.properties file? -


is possible specify project properties such name in gradle.properties file possible access them build.gradle using project.name?

i've tried no luck:

name=some project.name=some org.gradle.project.name=some 

you can it.

for example in root gradle.properties file can have:

version_name=2.0.2 

then in build.gradle file (in root folder) can have example:

allprojects {     version = version_name } 

if use in module build.gradle file can have:

android {      defaultconfig {         versionname project.version_name       } } 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -