From 71e0761476a0238a9d54cb4aff6c7c14f41db8d6 Mon Sep 17 00:00:00 2001 From: alexcrea <42614139+alexcrea@users.noreply.github.com> Date: Sat, 14 Jun 2025 14:05:14 +0200 Subject: [PATCH] fix not getting environment variable --- .github/workflows/gradle.yml | 1 - build.gradle.kts | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index b54bed9..48f4c21 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -19,7 +19,6 @@ concurrency: jobs: build: - runs-on: ubuntu-latest permissions: contents: write diff --git a/build.gradle.kts b/build.gradle.kts index e829958..a7d3617 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -19,7 +19,7 @@ group = "xyz.alexcrea" version = "1.11.3" val effectiveVersion = "$version" + - {(if(project.hasProperty("smallCommitHash")) "-${project.property("smallCommitHash")}" else "")} + { (if (System.getenv("SMALL_COMMIT_HASH") != null) "-${System.getenv("SMALL_COMMIT_HASH")!!}" else "") } repositories { // EcoEnchants @@ -118,7 +118,8 @@ allprojects { // Set target version tasks.withType().configureEach { - sourceCompatibility = "16" // We aim for java 16 for minecraft 1.16.5. even if it not really suported by custom anvil. + sourceCompatibility = + "16" // We aim for java 16 for minecraft 1.16.5. even if it not really suported by custom anvil. targetCompatibility = "16" options.encoding = "UTF-8"