Google Cloud Platform – How to Download File from Artifact Registry (Maven)

cloudgoogle-cloud-platformgzipmavenrepository

I have been playing with REST API for Artifact Registry. I can find the URL for .zip files I would like to download, but I only get JSON responses. Is it possible to download individual artifact files from the Artifact Registry with Maven projects?

Source: Method: projects.locations.repositories.files.get

For now it seems like I would need to use mvn and gradle to do this which would be inconvenient in my case.

Best Answer

As it described in the Artifact Registry API docs you mentioned, the files received by using the get method are represented in JSON.

You would need to use Maven or Gradle indeed to download an artifact.

As @IanW mentioned, there are two feature requests you can upvote:

Related Topic