Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/sbtPublic
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Add support for custom protocol with coursier#6375

Open
MasseGuillaume wants to merge1 commit intosbt:develop
base:develop
Choose a base branch
Loading
fromMasseGuillaume:coursier-custom-protocol

Conversation

MasseGuillaume
Copy link
Member

@MasseGuillaumeMasseGuillaume commentedMar 9, 2021
edited
Loading

In coursier, you can handle custom protocols by defining a protocol handler:
https://get-coursier.io/docs/2.0.10/extra.html#extra-protocols
https://github.com/coursier/coursier/blob/ce251d0288bf029e4eeb8700e8990178559a005d/modules/tests/jvm/src/test/scala/coursier/cache/protocol/TestprotocolHandler.scala

I'm currently implementing support for Google Artifact Resitory:
coursier/coursier#1987 (comment)

When dealing with artifact with protocolartifactregistry I need to have a plugin available in the classpath. Since lmcoursier is in the sbt launcher classpath, it's not available by addinglibraryDependencies += ... inproject/plugins.sbt like you would do for an sbt plugin. Therefore, I propose a way to explicitly declare the artifacts you need to handle the protocol handling.

Users of custom protocol can now specify dependencies to their handler via this sbt setting:

csrProtocolHandlerDependencies+="org.example"%"google-artifact-repository-coursier"%"0.1.0"

Depends oncoursier/sbt-coursier#327

sideeffffect reacted with thumbs up emoji
@987Nabil
Copy link
Contributor

Is there anything that speaks against this? I'd really like to have this 🙂

@sideeffffect
Copy link
Contributor

What is blocking this? It would be of great help for us.

@laughedelic
Copy link
Member

⬆️ 🙏

@eed3si9n
Copy link
Member

I think this PR should be on top of 1.9.x branch, since develop branch is for sbt 2.x.

laughedelic reacted with thumbs up emoji

@rolang
Copy link

It seems to be possible to set it viacsrConfiguration as well? Adding it like that worked for us:

csrConfiguration:= csrConfiguration.value.withProtocolHandlerDependencies(Seq("org.example"%"google-artifact-repository-coursier"%"0.1.0"))

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

6 participants
@MasseGuillaume@987Nabil@sideeffffect@laughedelic@eed3si9n@rolang

[8]ページ先頭

©2009-2025 Movatter.jp