Skip to content

Commit

Permalink
feat: add "-dev" suffix to version if is dev build
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Dec 25, 2024
1 parent 146b6ec commit 0736505
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions server/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer
import java.io.ByteArrayOutputStream

/**
* The current version of allay-server
*
* This is not the same as the version of allay-api.
* Please note that they are two things.
*/
version = "0.1.1"
/**
* Indicates whether the current build is a development build.
*
* This value should be changed to false before release the next stable version,
* and after releasing, change it back to true.
*/
val isDevBuild = true;
val isDevBuild = true
/**
* The current version of allay-server
*
* This is not the same as the version of allay-api.
* Please note that they are two things.
*/
version = "0.1.1" + if (isDevBuild) "-dev" else ""

plugins {
id("jacoco")
Expand Down Expand Up @@ -119,7 +119,7 @@ tasks.create("cleanWorkingDir") {
}

fun getShadedJarName(): String {
return "allay-server-${version}-${getShortGitHash()}${if (isDevBuild) "-dev" else ""}-shaded.jar"
return "allay-server-${version}-${getShortGitHash()}-shaded.jar"
}

fun getShortGitHash(): String {
Expand Down

0 comments on commit 0736505

Please sign in to comment.