Skip to content

Commit

Permalink
Add git properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkgregory committed Feb 13, 2020
1 parent 00794f2 commit eea1a12
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.gradle
Expand Up @@ -7,6 +7,7 @@ plugins {
id 'maven-publish'
id 'org.springframework.boot' version '2.2.4.RELEASE'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id "com.gorylenko.gradle-git-properties" version "2.2.1"
}

repositories {
Expand Down Expand Up @@ -43,3 +44,9 @@ publishing {
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}

gitProperties {
gitPropertiesName = "git.properties"
gitPropertiesResourceDir = "$buildDir/classes"
keys = ['git.commit.id']
}

0 comments on commit eea1a12

Please sign in to comment.