Merge branch 'feat/safeguard' into dev

# Conflicts:
#	build.gradle.kts
#	core/src/main/java/com/volmit/iris/Iris.java
This commit is contained in:
Julian Krings
2025-12-18 18:44:36 +01:00
16 changed files with 482 additions and 563 deletions

View File

@@ -189,10 +189,10 @@ val generateTemplates = tasks.register<Copy>("generateTemplates") {
"commit" to provider {
val res = runCatching { project.extensions.getByType<Grgit>().head().id }
res.getOrDefault("")
.takeIf { it.length == 40 } ?: {
logger.error("Git commit hash not found", res.exceptionOrNull())
.takeIf { it.length == 40 } ?: run {
this.logger.error("Git commit hash not found", res.exceptionOrNull())
"unknown"
}()
}
},
)