ajoberstar / reckon

Infer a project's version from your Git repository.
Apache License 2.0
191 stars 28 forks source link

Wrong reckoned version #106

Closed vesely-david closed 5 years ago

vesely-david commented 5 years ago

I have only 4 tags:

2.0.0
svd-1.0.0
svd-1.0.1
svd-1.0.2
svd-1.0.3

from which I assume only 2.0.0 should be considered for version inferring but the inferred version is

0.1.0-dev.0.347+20190123T150126Z

My settings are:

plugins {
    id 'org.ajoberstar.grgit' version '3.0.0'
    id 'org.ajoberstar.reckon' version '0.9.0'
}

apply plugin: 'org.ajoberstar.grgit'

reckon {
    scopeFromProp()
    stageFromProp('dev', 'final')
}

May I ask you to look what am I doing wrong?

vesely-david commented 5 years ago

I've found that the tag 2.0.0 wasn't recognized because of strange history tree. It's working now.