Skip to content

Commit

Permalink
Add githash and version to manifest file
Browse files Browse the repository at this point in the history
  • Loading branch information
robcos committed Jan 16, 2024
1 parent e2cb8a3 commit 0f302e6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions play-validations/memory-footprint/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ 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")
}
if(System.getProperty("memory-footprint.version")) {
attributes "Version": System.getProperty("memory-footprint.version")
}
}

from {
Expand Down

0 comments on commit 0f302e6

Please sign in to comment.