From a5274952b41faea62817e9a06381bb1f4fbebfb5 Mon Sep 17 00:00:00 2001 From: "Daniel A. A. Pelsmaeker" Date: Thu, 18 Jul 2024 15:36:33 +0200 Subject: [PATCH] Always use Gradle version, even "undefined" --- .../src/main/kotlin/mb/spoofax/gradle/util/ConfigOverride.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/src/main/kotlin/mb/spoofax/gradle/util/ConfigOverride.kt b/plugin/src/main/kotlin/mb/spoofax/gradle/util/ConfigOverride.kt index f97280f..65b7747 100644 --- a/plugin/src/main/kotlin/mb/spoofax/gradle/util/ConfigOverride.kt +++ b/plugin/src/main/kotlin/mb/spoofax/gradle/util/ConfigOverride.kt @@ -96,8 +96,7 @@ internal fun SpoofaxExtensionBase.overrideIdentifiers(configOverrides: SpoofaxGr configOverrides.update(project) { groupId = project.group.toString() id = project.name - val versionStr = project.version.toString() - version = if(versionStr != Project.DEFAULT_VERSION) LanguageVersion.parse(versionStr) else null + version = LanguageVersion.parse(project.version.toString()) } }