Skip to content

Commit

Permalink
custom /actuator/info with git detail info
Browse files Browse the repository at this point in the history
  • Loading branch information
yingtingxu committed Jun 20, 2024
1 parent 66f7aac commit cc0c3e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mall-catalog/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id 'java'
id 'org.springframework.boot' version '3.3.0'
id 'io.spring.dependency-management' version '1.1.5'
id 'com.gorylenko.gradle-git-properties' version '2.4.1'
}

group = 'org.mall'
Expand Down Expand Up @@ -67,6 +68,10 @@ springBoot {
buildInfo()
}

gitProperties {
failOnNoGitDirectory = false
}

bootRun {
systemProperty "mall.testdata.enabled", "true"
}
Expand Down
2 changes: 2 additions & 0 deletions mall-catalog/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ management:
enabled: true
os:
enabled: true
git:
mode: full

logging:
pattern:
Expand Down

0 comments on commit cc0c3e4

Please sign in to comment.