Skip to content

Commit

Permalink
Add githash to manifest file
Browse files Browse the repository at this point in the history
  • Loading branch information
robcos committed Jan 16, 2024
1 parent 5dfec2f commit 583abcd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions play-validations/memory-footprint/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ jar {

manifest {
attributes "Main-Class": "com.google.wear.watchface.dfx.memory.ResourceMemoryEvaluator"
// Use `gradle :memory-footprint:jar -Dmemory-footprint.git_hash=$(git rev-parse --short HEAD)` to store
// the current build's hash in the manifest file.
if(System.getProperty("memory-footprint.git_hash")) {
attributes "Git-Hash": System.getProperty("memory-footprint.git_hash")
}
}

from {
Expand Down

0 comments on commit 583abcd

Please sign in to comment.