Skip to content

Add support for a "manual" SCM Adapter#376

Open
DamnedElric wants to merge 1 commit intoresearchgate:mainfrom
DamnedElric:ManualScmSupport
Open

Add support for a "manual" SCM Adapter#376
DamnedElric wants to merge 1 commit intoresearchgate:mainfrom
DamnedElric:ManualScmSupport

Conversation

@DamnedElric
Copy link
Copy Markdown
Contributor

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.

release {
	scmAdapters = [
		net.researchgate.release.ManualAdapter
	]
}

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.
HgAdapter,
BzrAdapter
BzrAdapter,
ManualAdapter
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants