Fork me on GitHub
#boot
<
2019-11-05
>
ska09:11:10

Hi! Has anyone ever used boot to deploy artifacts in GitLab? Their repo doesn't support username/password auth but requires a token to be sent via HTTP header. See documentation at https://docs.gitlab.com/ee/user/packages/maven_repository/#authenticating-with-a-personal-access-token

ska09:11:24

Does boot support that?

flyboarder17:11:32

I don’t believe so, however you should be able to implement this as a task

ska08:11:57

How would you approach that? Just a vague outline to give me an idea. That'd be helpful.

flyboarder17:11:17

I would look at the existing push task and see if you can simply modify it for additional auth mechanisms

ska13:11:54

Thanks. I did that and it essentially reaches out to Maven libraries via pomegranate. I didn't see anything where I could sneak different auth in.

flyboarder00:11:20

@U066F9CUW so does pomegranate support other options?

ska13:11:58

The way I understand the code at https://github.com/cemerick/pomegranate/blob/master/src/main/clojure/cemerick/pomegranate/aether.clj#L181 and in that area in general, no it doesn't. Of course I can be wrong.