-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when git repository has no commits #25
Comments
I think this is related to #24. Internally my plugin uses the gradle-git plugin. I will have a look at this. Semver FAQ recommends to start with With that said, the first version must always be |
I agree with you about |
Thank you very much for that link. I didn't know that. I will give a talk at http://javaland.eu about semantic-release (using this plugin, of course). I will incorporate that info. |
Also I suspect there is a problem when |
Suppose that you just created directory, run
git init
and wrote simple build script that uses semantic-release plugin.Running it could give you an exception:
Demo build script (don't forget to do
git init
) and stacktrace:https://gist.github.com/grv87/1b445bf9daf81bd3f6764ff8c0ef2dde
The problem arises only when some other part of build script tries to use
version
property. Plugin then throws an error.Semver FAQ recommends to start development with
0.1.0
version, so it could be used as start.The text was updated successfully, but these errors were encountered: