nebula-release-plugin
nebula-release-plugin copied to clipboard
How to create release tags without pushing to the remote?
What I'd like to have is to have an option to make the final
task tag local repo, plus whatever else final
is doing, but without pushing the tag to the remote.
release.useLastTag=true
stops the push, but it skips the tagging as well, which is something I'd like to have.
This is also an obstacle for us. We don't have the Git credentials and need to use the command line git push --tags
to do it after the tag is created.
I found a hack, with git remote add origin .
(.
being the root of the git repo). This essentially points the remote origin
back to local. With that, gradle final
could do tagging without complaints.
Since it modifies the origin
remote, I'd assume this would work only for local-only repos.
In any way, a switch from nebula release plugin is preferred.