diff --git a/build.gradle b/build.gradle index 0f9602ea..e1c519e2 100644 --- a/build.gradle +++ b/build.gradle @@ -35,6 +35,7 @@ buildscript { plugins { id 'extra-java-module-info' // apply plugin written in buildSrc + id 'net.nemerosa.versioning' version '2.8.2' } extraJavaModuleInfo { @@ -166,7 +167,8 @@ subprojects { proj -> attributes( 'Build-Timestamp': new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date()), 'Build-Jdk': "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})", - 'Build-OS': "${System.properties['os.name']} ${System.properties['os.arch']} ${System.properties['os.version']}" + 'Build-OS': "${System.properties['os.name']} ${System.properties['os.arch']} ${System.properties['os.version']}", + 'Build-Revision': versioning.info.commit ) } }