wooga / atlas-github

Gradle plugin to publish artifacts to github
https://wooga.github.io/atlas-github/
Apache License 2.0
1 stars 3 forks source link

Added client provider to extension #95

Closed Joaquimmnetto closed 3 years ago

Joaquimmnetto commented 3 years ago

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