djspiewak / sbt-github-packages

A simple sbt plugin for publishing to GitHub Packages, in the style of sbt-sonatype and sbt-bintray
Apache License 2.0
175 stars 27 forks source link

Allow using Resolver/Publisher independently #44

Open iRevive opened 2 years ago

iRevive commented 2 years ago

Currently, it's hard to use a plugin only for publishing. Especially when the publishing process happens only on CI. At this point, a valid token is not needed locally.

But the build will fail anyway since the credentials setting requires a token to be defined.

From my point of view, the functionality can be separated into smaller modules.

Project modules:

Publisher

Responsible for the publishing part.

Settings:

Derived settings (based on githubPublishToRepository):

Behavior:

Resolver/Downloader/Loader

The should be a better name I believe.

It would be nice if multiple GitHub repositories can be supported.

Settings:

Derived settings (based on githubRepositories):

Behavior:

colindean commented 2 years ago

I just had to work around this problem with https://github.com/target/data-validator/pull/98 by setting an invalid token just to allow sbt to run.