abdolence / sbt-gcs-resolver

SBT plugin for Google Cloud Storage (GCS) and Google Artifact Registry with Coursier support
Apache License 2.0
28 stars 7 forks source link

Local setup #3

Closed jczuchnowski closed 2 years ago

jczuchnowski commented 2 years ago

What is the best way for a local setup?

Let's assume a private project with private dependencies kept in Artifact Registry. Once I add the plugin to the project sbt will fail if there is no credentials file available. On the other hand each of the developers has gcloud configured and has personal access to the Artifact Registry. Is there a way to use that?

jczuchnowski commented 2 years ago

I got a solution from @abdolence on another communication channel.

Turns out gcloud authentication works out of the box. I just needed to run

gcloud auth application-default login

in addition to the basic gcloud setup.

abdolence commented 2 years ago

Slightly updated readme about application default settings to help others with this.