Skip to content
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

Add support for a "manual" SCM Adapter #376

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DamnedElric
Copy link
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.
@@ -95,7 +95,8 @@ class ReleaseExtension {
GitAdapter,
SvnAdapter,
HgAdapter,
BzrAdapter
BzrAdapter,
ManualAdapter
Copy link
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
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