Include date and build date in logs

This commit is contained in:
Anuken
2025-05-04 09:35:18 -04:00
parent e3b38ffe48
commit af1df167ed
3 changed files with 10 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
import java.text.SimpleDateFormat
buildscript{
ext{
arcHash = property("archash")
@@ -137,6 +139,7 @@ allprojects{
props["number"] = versionNumber
props["modifier"] = versionModifier
props["build"] = buildid
props["buildDate"] = new SimpleDateFormat("MMMM d, yyyy HH:mm a", Locale.getDefault()).format(new Date())
props["commitHash"] = "unknown"
if(project.hasProperty("showCommitHash")){
props["commitHash"] = getCommitHash()