ajoberstar / reckon

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

ReckonTagCreate failed #87

Closed jco2641 closed 6 years ago

jco2641 commented 6 years ago

This is the first time I've attempted to tag a build with reckon.
The build process without tagging works perfectly for naming the artifacts.

Command line: $ ./gradlew reckonTagPush -Preckon.scope=patch -Preckon.stage=beta --info --stacktrace

Error output:

Task :reckonTagCreate FAILED :reckonTagCreate (Thread[Daemon worker Thread 2,5,main]) completed. Took 0.0 secs.

FAILURE: Build failed with an exception.

Full output: https://gist.github.com/jco2641/ea840539d51b6614a109e08833fddb0e

Build.gradle file: https://github.com/jco2641/Thaumic_Computers/blob/master/build.gradle

jco2641 commented 6 years ago

I suspect it might be because I am messing with project.version after it is set by reckon, so it is not a Version object anymore.

jco2641 commented 6 years ago

That was the source of the problem, no issue with your project.

erichaominli commented 4 years ago

I have the same problem. Could you share the solution?

jco2641 commented 4 years ago

@EricHaomin The cause was in my comments and closure. I was setting project.version to a string after reckon was setting it to an object. I took out or changed the string manipulation i was doing and it went away.