Added client provider to GithubPluginExtension, which gives a github API client to be used, based on the extension credentials. As this would result in duplicated client initialization code, client initialization was centralized in GithubClientFactory, which returns an empty provider in case of missing credentials, so if you want to throw exception on empty provider, you must explicitly do so.
Also relocated some annotations on AbstractGithubTask to make it gradle 7 compatible.
Description
Added client provider to GithubPluginExtension, which gives a github API client to be used, based on the extension credentials. As this would result in duplicated client initialization code, client initialization was centralized in
GithubClientFactory
, which returns an empty provider in case of missing credentials, so if you want to throw exception on empty provider, you must explicitly do so.Also relocated some annotations on
AbstractGithubTask
to make it gradle 7 compatible.Changes
GithubPluginExtension
.