Fix EngineInformation#versioningString being invalid

This commit is contained in:
JeremyStar™ 2024-08-17 14:09:03 +02:00
parent ae8010a271
commit e8ec0ed530
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -34,6 +34,7 @@ import java.text.SimpleDateFormat;
import java.time.ZonedDateTime;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.Locale;
import java.util.Properties;
/**
@ -379,7 +380,7 @@ public final class EngineInformation {
versioningType = VersionType.valueOf(gradleParser.getString("versioningType").toUpperCase());
versioningTyperelease = gradleParser.getInteger("versioningTyperelease", true);
versioningFork = gradleParser.getString("versioningFork");
versioningString = "v" + versioningVersion + "-" + (versioningType == VersionType.RELEASE_CANDIDATE ? "releasecandidate" : versioningType.name()) + versioningTyperelease + versioningFork;
versioningString = "v" + versioningVersion + "-" + (versioningType == VersionType.RELEASE_CANDIDATE ? "releasecandidate" : versioningType.name().toLowerCase(Locale.ROOT)) + versioningTyperelease + versioningFork;
dependencyJansi = gradleParser.getString("dependencyJansi");
dependencyReflections = gradleParser.getString("dependencyReflections");