Add support for a "manual" SCM Adapter#376
Open
DamnedElric wants to merge 1 commit intoresearchgate:mainfrom
Open
Add support for a "manual" SCM Adapter#376DamnedElric wants to merge 1 commit intoresearchgate:mainfrom
DamnedElric wants to merge 1 commit intoresearchgate:mainfrom
Conversation
This makes it possible to use the same release flow when using unsupported SCMs, or in environments where the SCM environment is not set up in the way gradle-release expects.
DamnedElric
commented
Mar 27, 2023
| HgAdapter, | ||
| BzrAdapter | ||
| BzrAdapter, | ||
| ManualAdapter |
Contributor
Author
There was a problem hiding this comment.
I'm not sure if it's a good idea to add this by default. Maybe it is, as it will only be executed if no other SCM adapter matches the current environment.
Collaborator
There was a problem hiding this comment.
We could make this one configurable to allow additional adapters to be added.
I think having this as a fallback is not something that most users want as it should somewhat automate the release while this here make everything manual and can be very error prone.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The main use case is being able to release using unsupported SCMs. But this is also a useful workaround for complex git setups: the plugin uses "exec" to execute
git, which ignores shell aliases, which breaks some git setups.When using the following configuration, gradle-release will ask a few extra questions during the release process, and will give the user the chance to commit and tag things by hand.