Guillaume Massé (马赛卫)
Guillaume Massé (马赛卫)
Great I will take a look at this during the weekend. It does not look to hard to implement. Thanks for the pointers. Also, how does this feature land in...
Yup the method with credentials works fine for fetching artifacts, thanks for the pointer, we will use this until we have the proper authentication. I will see if I can...
I was able to get coursier to resolve the dependency with the method you suggested. Thanks a lot! Now I'm a bit stuck with integrating this into my build. Two...
Hum ok I will take a look adding: ``` ThisBuild / resolvers += "google" at "artifactregistry://us-maven.pkg.dev//maven" ``` result in: ``` Error parsing Maven repository base artifactregistry://us-maven.pkg.dev//maven (unknown protocol: artifactregistry), ignoring...
I built a local version of sbt/coursier/coursier shaded and I was able to add more debug logs. You are correct about the shading, it's trying to load: `lmcoursier.internal.shaded.coursier.cache.protocol.ArtifactregistryHandler` I changed...
There is indeed something fishy with the classloader/dependency shading. As a sanity check, I added `ArtifactregistryHandler` in coursier. Added: `modules/cache/jvm/src/main/java/coursier/cache/protocol/ArtifactregistryHandler.java` ``` + libs += Deps.artifactregistry, + shadedModules += Deps.artifactregistry.module, +...
I found a way to make it work. If I build the sbt launcher with my dependency, it's available in the classpath and you can download: ``` console [GUI] handlerFor:...
Almost there, I found the solution for the issue above when creating an URL with a custom protocol. The only issue pending is to figure out why I can't get...
Hey, finally, I propose what they did in scalafix where they have: https://github.com/scalacenter/sbt-scalafix/blob/1eeafe2df0c86a3cf4d90137cc3d2c00adb8b407/src/main/scala/scalafix/sbt/ScalafixPlugin.scala#L75 `csrProtocolHandlerDependencies: SettingKey[Seq[ModuleID]]` What do you think? Edit: Here is my game plan: 1) https://github.com/coursier/coursier/pull/1995 CacheUrl.url takes ClassLoader...
Yup the crux of this plugin is here: https://github.com/abdolence/sbt-gcs-resolver/blob/master/sbt-gcs-plugin/src/main/scala/org/latestbit/sbt/gcs/GcsUrlHandlerFactory.scala#L52 It globally set a URL handler. At the time I wrote all those PR, I was unaware it was possible to...