FINERACT-883
Display fineracts git build info actuator/info endpoint
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
4b724c2917
commit
c317db110f
@@ -1,6 +1,7 @@
|
|||||||
bin
|
bin
|
||||||
out/
|
out/
|
||||||
build
|
build
|
||||||
|
src/main/resources/git.properties
|
||||||
repos
|
repos
|
||||||
.classpath
|
.classpath
|
||||||
.project
|
.project
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ buildscript {
|
|||||||
// See: https://github.com/spotbugs/spotbugs-gradle-plugin/issues/128#issuecomment-535864882
|
// See: https://github.com/spotbugs/spotbugs-gradle-plugin/issues/128#issuecomment-535864882
|
||||||
classpath 'com.google.guava:guava:28.1-jre'
|
classpath 'com.google.guava:guava:28.1-jre'
|
||||||
classpath "gradle.plugin.com.github.andygoossens:gradle-modernizer-plugin:1.3.0"
|
classpath "gradle.plugin.com.github.andygoossens:gradle-modernizer-plugin:1.3.0"
|
||||||
|
classpath "gradle.plugin.com.gorylenko.gradle-git-properties:gradle-git-properties:2.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -68,6 +69,7 @@ apply plugin: "com.github.spotbugs"
|
|||||||
apply plugin: 'checkstyle'
|
apply plugin: 'checkstyle'
|
||||||
apply plugin: 'com.github.andygoossens.gradle-modernizer-plugin'
|
apply plugin: 'com.github.andygoossens.gradle-modernizer-plugin'
|
||||||
apply plugin: 'jacoco'
|
apply plugin: 'jacoco'
|
||||||
|
apply plugin: "com.gorylenko.gradle-git-properties"
|
||||||
// apply plugin: 'pmd'
|
// apply plugin: 'pmd'
|
||||||
|
|
||||||
dependencyManagement {
|
dependencyManagement {
|
||||||
@@ -250,8 +252,8 @@ rat {
|
|||||||
|
|
||||||
//BSD License
|
//BSD License
|
||||||
'**/assets/uglify.js',
|
'**/assets/uglify.js',
|
||||||
//Ignore out folder
|
//Ignore out folder
|
||||||
'**/out/**'
|
'**/out/**',
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -403,7 +405,15 @@ war {
|
|||||||
|
|
||||||
license {
|
license {
|
||||||
header rootProject.file('../APACHE_LICENSETEXT.md')
|
header rootProject.file('../APACHE_LICENSETEXT.md')
|
||||||
excludes(["**/*.html", "**/*.mustache", "**/package-info.java", "**/keystore.jks", "**/swagger-ui/**"])
|
excludes([
|
||||||
|
"**/rat-report.txt",
|
||||||
|
"**/git.properties",
|
||||||
|
"**/*.html",
|
||||||
|
"**/*.mustache",
|
||||||
|
"**/package-info.java",
|
||||||
|
"**/keystore.jks",
|
||||||
|
"**/swagger-ui/**",
|
||||||
|
])
|
||||||
strictCheck true
|
strictCheck true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -557,6 +567,7 @@ def qualifyVersionIfNecessary(version) {
|
|||||||
springBoot {
|
springBoot {
|
||||||
mainClassName = 'org.apache.fineract.ServerWithMariaDB4jApplication'
|
mainClassName = 'org.apache.fineract.ServerWithMariaDB4jApplication'
|
||||||
}
|
}
|
||||||
|
|
||||||
bootWar {
|
bootWar {
|
||||||
mainClassName = 'org.apache.fineract.ServerWithMariaDB4jApplication'
|
mainClassName = 'org.apache.fineract.ServerWithMariaDB4jApplication'
|
||||||
}
|
}
|
||||||
@@ -567,3 +578,16 @@ tasks.withType(SpotBugsTask) {
|
|||||||
reports.html.enabled = true
|
reports.html.enabled = true
|
||||||
reportLevel = "high"
|
reportLevel = "high"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gitProperties {
|
||||||
|
gitPropertiesResourceDir = "${project.rootDir}/src/main/resources"
|
||||||
|
dateFormat = "yyyy-MM-dd'T'HH:mmZ"
|
||||||
|
dateFormatTimeZone = "GMT"
|
||||||
|
}
|
||||||
|
|
||||||
|
generateGitProperties.outputs.upToDateWhen { false }
|
||||||
|
|
||||||
|
clean {
|
||||||
|
delete "${project.rootDir}/src/main/resources/git.properties"
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,3 +19,4 @@
|
|||||||
|
|
||||||
spring.profiles.default=basicauth
|
spring.profiles.default=basicauth
|
||||||
management.health.jms.enabled=false
|
management.health.jms.enabled=false
|
||||||
|
management.info.git.mode=FULL
|
||||||
|
|||||||
@@ -20,3 +20,4 @@
|
|||||||
spring.profiles.default=basicauth
|
spring.profiles.default=basicauth
|
||||||
spring.profiles.active=basicauth,twofactor
|
spring.profiles.active=basicauth,twofactor
|
||||||
management.health.jms.enabled=false
|
management.health.jms.enabled=false
|
||||||
|
management.info.git.mode=FULL
|
||||||
|
|||||||
@@ -20,3 +20,4 @@
|
|||||||
spring.profiles.default=basicauth
|
spring.profiles.default=basicauth
|
||||||
spring.profiles.active=oauth
|
spring.profiles.active=oauth
|
||||||
management.health.jms.enabled=false
|
management.health.jms.enabled=false
|
||||||
|
management.info.git.mode=FULL
|
||||||
|
|||||||
@@ -20,3 +20,4 @@
|
|||||||
spring.profiles.default=basicauth
|
spring.profiles.default=basicauth
|
||||||
spring.profiles.active=oauth,twofactor
|
spring.profiles.active=oauth,twofactor
|
||||||
management.health.jms.enabled=false
|
management.health.jms.enabled=false
|
||||||
|
management.info.git.mode=FULL
|
||||||
|
|||||||
@@ -19,3 +19,4 @@
|
|||||||
|
|
||||||
spring.profiles.default=basicauth
|
spring.profiles.default=basicauth
|
||||||
management.health.jms.enabled=false
|
management.health.jms.enabled=false
|
||||||
|
management.info.git.mode=FULL
|
||||||
|
|||||||
Reference in New Issue
Block a user