ajoberstar / reckon

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

reckonTagCreate is skipped #127

Closed sutoa closed 4 years ago

sutoa commented 4 years ago

Hello, I'm invoking the following command to see if i can tag my code with reckon for the first time. $ ./gradlew reckonTagPush -x test -Preckon.scope=patch -Precoken.stage=final

But the task is skipped because the onlyIf condition for tag creation. Skipping task ':reckonTagCreate' as task onlyIf is false.

My build.gradle has these lines. I commented out a line that used to specify the version explicitly

`apply plugin: 'org.ajoberstar.reckon'

reckon { reckon.scopeFromProp() reckon.stageFromProp('dev', 'rc', 'final') } //version = '1.0.25' `

Also, the repo I'm working on has a bunch of existing revisions that are not strictly Sementic Version. They all start with 'Release.v.xxx'. So 'Release.v.1.0.24' for example. My understanding is that reckon would ignore these non-compliant tags and start from 0.0.0. So that's why i was still expecting it to tag the code but maybe as 0.0.1.

What am I missing?

Thanks, -T

sutoa commented 4 years ago

Btw, I'm using reckon gradle plugin version 0.9.0 and my gradle version is 5.4

sutoa commented 4 years ago

Issue resolved.