ReactiveCircus / app-versioning

A Gradle Plugin for lazily generating Android app's versionCode & versionName from Git tags.
Apache License 2.0
205 stars 3 forks source link

Support setting gitRootDirectory explicitly when root Gradle project is not the git root. #13

Closed ychescale9 closed 3 years ago

ychescale9 commented 3 years ago

Fixes #12.

If the root Gradle project is not the git root:

myproject/
  .git/
  android/ <- root Gradle project
    app/
    library/

The git root directory needs to be specified explicitly:

appVersioning {
    gitRootDirectory.set(rootProject.file("../"))
}