mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-08-16 16:26:12 +00:00
whoops messed up the extension retrieval
This commit is contained in:
parent
08b9058c8f
commit
b0ca0e3617
@ -141,10 +141,10 @@ tasks {
|
|||||||
"main" to main,
|
"main" to main,
|
||||||
"environment" to if (project.hasProperty("release")) "production" else "development",
|
"environment" to if (project.hasProperty("release")) "production" else "development",
|
||||||
"commit" to provider {
|
"commit" to provider {
|
||||||
runCatching { extensions.getByType<Grgit>().head().id }
|
val res = runCatching { project.extensions.getByType<Grgit>().head().id }
|
||||||
.getOrDefault("")
|
res.getOrDefault("")
|
||||||
.takeIf { it.length == 40 } ?: {
|
.takeIf { it.length == 40 } ?: {
|
||||||
project.logger.error("Git commit hash not found")
|
logger.error("Git commit hash not found", res.exceptionOrNull())
|
||||||
"unknown"
|
"unknown"
|
||||||
}()
|
}()
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user