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
174 stars 27 forks source link

Remote Cache Support? #31

Open er1c opened 3 years ago

er1c commented 3 years ago

I saw https://github.com/sbt/sbt-bintray/tree/7fd17e28eb82e19acd889a88d1748a953ead234f/sbt-bintray-remote-cache/src/main/scala (via https://eed3si9n.com/remote-caching-sbt-builds-with-bintray) and was curious if anyone had investigated if the GitHub artifacts could be setup similarly.

djspiewak commented 3 years ago

This seems very plausible! Remote caching support works with any maven repository. The only downside is you would be "publishing" packages on your repository which cannot be unpublished.

er1c commented 3 years ago

I believe the setup @eed3si9n used is to have the remote-cache repo be a separately configured repo, so cached artifacts aren't published in the main repo.