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

Use artifact registry as an sbt proxy repository #57

Closed ihrimech closed 10 months ago

ihrimech commented 10 months ago

I tried using the plugin as a global plugin to use google Artifact Registry as a Proxy registry for all dependencies. Here is the repositories file :

    project-ivy-proxy-releases:  artifactregistry://europe-west1-maven.pkg.dev/my-project/my-proxy-repository/ivy/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], 
    project-maven-proxy-releases: artifactregistry://europe-west1-maven.pkg.dev/my-project/my-proxy-repository/maven/
    project-snapshots: artifactregistry://europe-west1-maven.pkg.dev/my-project/my-proxy-repository/project-snapshots/

But it seems like artifactregistry isn't a known protocol. Trying to build a scala project with these repositories throws the following error: unknown protocol: artifactregistry

Is there a way to be able to use google artifacts registry as a proxy repository ?

ihrimech commented 10 months ago

Just found an answer here : https://issuetracker.google.com/issues/195449905?pli=1 Using artifact registry as an sbt proxy repository is not implemented yet ...