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

Cannot read impersonated service account credentials #5

Closed vertuli closed 2 years ago

vertuli commented 2 years ago

Uh oh, the plugin is failing when attempting to read impersonated service account credentials.

To repeat this, impersonate a valid service account on your local machine:

gcloud auth application-default login --impersonate-service-account=example_account@example_project.iam.gserviceaccount.com

And then run any sbt action (e.g. sbt test).

[error] Unable to find/initialise google credentials: java.lang.ClassCastException: scala.collection.convert.Wrappers$IterableWrapper cannot be cast to java.util.List. Publishing/resolving artifacts from GCP is disabled.
abdolence commented 2 years ago

Interesting behaviour :) let me check it

abdolence commented 2 years ago

I think I fixed this with v1.6.1 and it worked for me on my test project. Let me know if this doesn't work for you for some reason and thanks for the report!