Skip to content

Commit 80d34a0

Browse files
committed
build: Fix getting Git tag
1 parent 5f88f76 commit 80d34a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

buildSrc/src/main/kotlin/dev/freya02/botcommands/plugins/PublishedProjectEnvironmentConfig.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ abstract class PublishedProjectEnvironmentConfig(
4949

5050
val isJitpack = GitUtils.isJitpack(project.providers)
5151

52-
val effectiveTag = if (canPublish) "v${version}" else "3.X"
52+
val effectiveTag by lazy {
53+
if (canPublish) "v${version.get()}" else "3.X"
54+
}
5355

5456
/**
5557
* Sets the provided [artifactId] as the Kotlin module name, Dokka module name & path, and Maven artifact ID.

0 commit comments

Comments
 (0)