gradle-advanced-build-version icon indicating copy to clipboard operation
gradle-advanced-build-version copied to clipboard

Same config for multiple modules

Open tlimp opened this issue 8 years ago • 0 comments

I'm building an app with Android Wear support. There wear module must use the same version number as the mobile. So it would be really great if I could use the same gradle-advanced-build-version for both modules.

Since I'm using VersionCodeType.AUTO_INCREMENT_ONE_STEP for versionCode my simple workaround is to symlink the version.properties file from the mobile into the wear module. But for the versionName I have to keep them in sync manually. Having the versionName options also in the version.properties would help a lot for a start.

But I'm not sure how reliable symlinks work across different platforms using git or other VCS. So I guess a solution not relying on symlinks would be preferable.

My groovy/gradle knowledge is very limited so i have no clue how to implement it myself based on your existing code.

Any chances this use case can be implemented in any way?

tlimp avatar Oct 17 '15 15:10 tlimp