Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

SNAPSHOT postfix #15

Open
gabrielsimpsons opened this issue Mar 7, 2017 · 1 comment
Open

SNAPSHOT postfix #15

gabrielsimpsons opened this issue Mar 7, 2017 · 1 comment

Comments

@gabrielsimpsons
Copy link

When I generate the version with ext.gitVersioner.snapshotEnabled in false, the version name still with -SNAPSHOT postfiex
image

@passsy
Copy link
Owner

passsy commented Mar 8, 2017

Can you provide more code from your configuration? I tested it and it works as expected

ext.gitVersioner = [
        defaultBranch           : "develop",
        stableBranches          : ['master'],
        snapshotEnabled         : false,
        localChangesCountEnabled: false,
]

println("versionName: $gitVersionName")
// outputs: versionName: 392-yz11
ext.gitVersioner = [
        defaultBranch           : "develop",
        stableBranches          : ['master'],
        snapshotEnabled         : true,
        localChangesCountEnabled: true,
]

println("versionName: $gitVersionName") 
//outputs: versionName: 392-yz11(10)-SNAPSHOT

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants