There was an error while loading. Please reload this page.
1 parent 7a94931 commit 75f72f6Copy full SHA for 75f72f6
1 file changed
build.gradle.kts
@@ -8,8 +8,16 @@ plugins {
8
id("org.jetbrains.dokka") version "1.9.20" // Do not update because of kotlin("jvm") version
9
}
10
11
+// Get version
12
+version =
13
+ System.getenv("GITHUB_REF_NAME")
14
+ ?.takeIf { System.getenv("GITHUB_REF_TYPE") == "tag" }
15
+ ?: System.getenv("GITHUB_SHA")
16
+ ?.takeIf { it.isNotBlank() }
17
+ ?.take(7)
18
+ ?: "dev"
19
+
20
group = "xyz.srnyx"
-version = providers.environmentVariable("VERSION").orNull?.takeIf(String::isNotBlank) ?: "3.1.0"
21
description = "A Gradle plugin to simplify the process of creating projects"
22
val projectId: String = "gradle-galaxy"
23
val vcs: String = "github.com/srnyx/$projectId"
0 commit comments