Skip to content

Commit 3501580

Browse files
authored
Update dependencies.md to mention jitpack (#2458)
1 parent 8402cc9 commit 3501580

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

website/docs/guides/dependencies.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,13 @@ or
5151
scala-cli --repository "https://maven-central.storage-download.googleapis.com/maven2"
5252
```
5353

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

5658
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)).
5759

60+
5861
#### Predefined repositories
5962

6063
| predefined repository | kind | description |
@@ -65,6 +68,7 @@ Repositories can also be resolved from the `COURSIER_REPOSITORIES` environment v
6568
| 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`.
6669
| ivy2local | Ivy | Local ivy repository, used to publish things locally (e.g. by `publishLocal`). Localized in `<ivy-home>/local`, usually `<user-home>/.ivy/local`. |
6770
| m2Local | Maven | Local maven repository, localized in `<user-home>/.m2/repository` |
71+
| jitpack | Maven | jitpack supports github repo as dependency. Syntax is `using repository "jitpack"`
6872

6973
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))
7074

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

198202
:::caution
199203
Local JARs with the `*-sources.jar` suffix are assumed to be sources JARs and are treated as such.
200-
:::
204+
:::

0 commit comments

Comments
 (0)