gilcloud / sbt-gitlab

sbt plugin to allow dependency resolution and artifact publishing for gitlab
Apache License 2.0
26 stars 20 forks source link

Support maven/coursier #23

Open hedefalk opened 3 years ago

hedefalk commented 3 years ago

Is there a way this can be implemented with sbt mvn style resolvers so we don't have to ditch Coursier?

I'm considering using gitlab as a org wide artifact repo instead of running a separate nexus/artifactory, but having to disable coursier on all builds is kindof a dealbreaker for us.

This sounds dark here:

Unfortunately, the SBT publishing system does not support the maven settings file, and has no facility for appending headers to the artifact request.

https://gitlab.com/gitlab-org/gitlab/-/issues/212854

but just wanted to double-check…? To me it sounds like this has to be fixed in sbt? I mean, custom headers for auth on custom resolvers should definitively be possible?

hedefalk commented 3 years ago

I've been using this for github packages:

https://github.com/djspiewak/sbt-github-packages/blob/master/src/main/scala/sbtghpackages/GitHubPackagesPlugin.scala#L44

That approach is something different than the custom headers that gitlab need I guess?

gilandose commented 3 years ago

I'll take a look at this and reach back out to Coursier author, at the time it wasn't possible, but might be a different approach that can be taken