Skip to content

Commit

Permalink
Select suffix in extension block, as it then becomes immutable. (#2093)
Browse files Browse the repository at this point in the history
  • Loading branch information
tychobrailleur authored Jun 27, 2024
1 parent a30d8f1 commit 791d616
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ version = '8.0'
ext {
// Development_stage (DEV:0 BETA:1 STABLE:2)
development_stage = project.properties['DEV_STAGE'] as Integer ?: 0
version_type = "-DEV"
version_type = ["-DEV", "-BETA", ""].get(development_stage) ?: '-DEV'
target_dir = "${buildDir}/artefacts"
}

Expand Down Expand Up @@ -238,8 +238,6 @@ tasks.register("createVersion") {
versionProps['tag'] = ['dev', 'beta', 'tag_stable'].get(developmentStage)
versionProps['branch'] = currentBranch

project.ext.version_type = ["-DEV", "-BETA", ""].get(developmentStage)

// Write to version.properties file
def versionPropsFile = new File('version.properties')
versionProps.store(versionPropsFile.newWriter(), null)
Expand Down

0 comments on commit 791d616

Please sign in to comment.