From 0e3fcaebda583c6350860746004621f8c2eeb71c Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Wed, 4 Oct 2023 11:57:53 +0200 Subject: [PATCH] build: If on a pre-release, use the SemVer with SHA1 metadata Signed-off-by: Sebastian Schuberth --- build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 2a52ef04f6f08..c75bd08369dc6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -43,7 +43,7 @@ semver { // Only override a default version (which usually is "unspecified"), but not a custom version. if (version == Project.DEFAULT_VERSION) { - version = semver.version + version = semver.semVersion.takeIf { it.isPreRelease } ?: semver.version } logger.lifecycle("Building ORT version $version.")