-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prior to this commit, the build suffix (displayed to users at startup) was always the top of tree git short hash. This is nice but it falls down if someone is pulling a release from a tarball, zip file, or other archive that does not include the .git folder or if the builder does not have git installed. As of this commit, the project will now build even in those cases (displaying a "0" suffix). This change also allows the builder to specify the suffix for packaging or other purposes via the "suffix" property. E.g. `./gradlew build -P suffix="build35"` I have no immediate plans to change my use of the git hash in releases on GitHub, but hopefully this allows others additional flexibility. Fixes #82
- Loading branch information
Showing
4 changed files
with
26 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Name: ${projectName} | ||
Version: ${projectVersion} | ||
Git-Hash: ${projectGitHash} | ||
Suffix: ${projectSuffix} | ||
Source-Repo: ${projectSourceRepo} |