Details
Description
Part 1.
In build.gradle, the line
id 'com.palantir.git-version' version '0.12.3'
fetches _and applies_ the git-version plugin (this plugin is used to obtain the git commitid and git branch name without the platform having to have git installed -- this is good for portability).
However, when applied, it checks for the presence of a `.git` directory. If no .git dir is present then it produces a fatal error and the gradle task called doesn't even get started.
Part 2.
When the source tarball is created, it should add the git branch and git commitid values to the RELEASE properties file that goes into the tarball (not leave it in the real one which is manually edited) so that these can be obtained when compiling from the source tarball (and hence not in a git repo).
In build.gradle, the line
id 'com.palantir.git-version' version '0.12.3'
fetches _and applies_ the git-version plugin (this plugin is used to obtain the git commitid and git branch name without the platform having to have git installed -- this is good for portability).
However, when applied, it checks for the presence of a `.git` directory. If no .git dir is present then it produces a fatal error and the gradle task called doesn't even get started.
Part 2.
When the source tarball is created, it should add the git branch and git commitid values to the RELEASE properties file that goes into the tarball (not leave it in the real one which is manually edited) so that these can be obtained when compiling from the source tarball (and hence not in a git repo).