I included plugin "com.google.cloud.artifactregistry.gradle-plugin" in my gradle project.
plugins {
......
id "com.google.cloud.artifactregistry.gradle-plugin" version "2.1.1"
}
I always get an error message during pulling:
Failed to apply plugin 'com.google.cloud.artifactregistry.gradle-plugin'.
Failed to get access token from gcloud or Application Default Credentials
Anyone knows why? I see it mentioned in this post https://github.com/GoogleCloudPlatform/artifact-registry-maven-tools/issues/34. that I need to have a GCP account first. I downloaded the GCP SDK, and logged in to my account, but still get the same message. Anyone can provide more specific solution? Thanks.