Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies.md to mention jitpack #2458

Merged
merged 1 commit into from
Oct 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion website/docs/guides/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,13 @@ or
scala-cli --repository "https://maven-central.storage-download.googleapis.com/maven2"
```



Both directive and command line option accept predefined repository definitions (see below) or a URL of the root of Maven repository.

Repositories can also be resolved from the `COURSIER_REPOSITORIES` environment variable, but this is not recommended (more in [Coursier documentation](https://get-coursier.io/docs/other-repositories)).


#### Predefined repositories

| predefined repository | kind | description |
Expand All @@ -65,6 +68,7 @@ Repositories can also be resolved from the `COURSIER_REPOSITORIES` environment v
| snapshots | Maven [(root)](https://oss.sonatype.org/content/repositories/snapshots) and Maven S01 [(root)](https://s01.oss.sonatype.org/content/repositories/snapshots) | An alias for `sonatype:snapshots` and `sonatype-s01:snapshots`.
| ivy2local | Ivy | Local ivy repository, used to publish things locally (e.g. by `publishLocal`). Localized in `<ivy-home>/local`, usually `<user-home>/.ivy/local`. |
| m2Local | Maven | Local maven repository, localized in `<user-home>/.m2/repository` |
| jitpack | Maven | jitpack supports github repo as dependency. Syntax is `using repository "jitpack"`

Scala CLI delegates parsing of predefined repositories to Coursier and full details can be obtained from Coursier source code ([here](https://github.com/coursier/coursier/blob/2444eebcc151e0f6927e269137e8737c1f31cbe2/modules/coursier/jvm/src/main/scala/coursier/LocalRepositories.scala) and [here](https://github.com/coursier/coursier/blob/2444eebcc151e0f6927e269137e8737c1f31cbe2/modules/coursier/shared/src/main/scala/coursier/internal/SharedRepositoryParser.scala))

Expand Down Expand Up @@ -197,4 +201,4 @@ Both can be handled with the appropriate `using` directives, too:

:::caution
Local JARs with the `*-sources.jar` suffix are assumed to be sources JARs and are treated as such.
:::
:::
Loading