Closed raleighr3 closed 8 years ago
@raleighr3 You are right. Seems to be a documentation error on my part, it's version
not as documented. TryappVersion
buildConfig {
version = 'whatever you want'
}
also: if version is not set explicitely, it defaults to project.version
. so
buildConfig {
}
would have the same effect as:
buildConfig {
...
version = project.version
}
I corrected the README.md. I will close this issue. Feel free to reopen if there's still a problem.
When trying to set the appVersion in buildConfig gradle gives the following error:
If I try just
version
then it seems to work if set to a constant. Doesn't work when setproject.version
.This is in a subproject build of multi-project gradle setup.