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.")