Update build.gradle.kts

This commit is contained in:
Tenkuma 2025-12-31 14:50:40 -03:00 committed by GitHub
commit 223487848e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,7 +4,7 @@ plugins {
} }
group = "io.github.adrianvic.itemeconomy" group = "io.github.adrianvic.itemeconomy"
version = System.getenv("ITEMECO_VERSION_NAME") ?: "unknown" version = providers.environmentVariable("ITEMECO_VERSION_NAME").orElse("unknown").get()
repositories { repositories {
mavenCentral() mavenCentral()
@ -77,7 +77,7 @@ mcVersions.forEach { ver ->
manifest { manifest {
attributes( attributes(
"itemeco-Impl-Version" to ver, "itemeco-Impl-Version" to ver,
"itemeco-Environment" to (System.getenv("ITEMECO_BUILD_CHANNEL") ?: "dev") "itemeco-Environment" to (providers.environmentVariable("ITEMECO_BUILD_CHANNEL").orElse("dev").get())
) )
} }