Open panthony opened 11 months ago
Our team has been struggling with this as well. The accepted work around that seems to work pretty consistently is killing the gradle daemon, re-auth with gcloud, and then rebuild. This is obviously not ideal.
In digging through the source code, it seemed this might have been introduced when credential caching was added to the plugin: https://github.com/GoogleCloudPlatform/artifact-registry-maven-tools/pull/75
Running into this issue too. This has become a big nuisance.
Any update on this?
Same error here and like @n8ebel said, the credentials cache is the root cause of this issue. Unfortunately, I didn't see any contributor anymore on this project. These plugins are maybe abandoned? 🤔
Reopening #39 because I ran into the same issue.
I'm using gradlew to build a project which rely on a repository hosted on Artifact Registry.
I authenticate using:
My authentication expires after a while so I have to re-authenticate at least once a day, when it occurs the project won't build and fail with a 401 unauthorized.
Even if I re-authenticate using gcloud.
I noticed that changing the version of the plugin
com.google.cloud.artifactregistry.gradle-plugin
or re-starting the daemon would fix the issue.