fix not getting environment variable

This commit is contained in:
alexcrea 2025-06-14 14:05:14 +02:00
parent 36a2bd23a6
commit 71e0761476
No known key found for this signature in database
GPG key ID: 027DD67D2D3280C5
2 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,6 @@ concurrency:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write

View file

@ -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<JavaCompile>().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"