diff --git a/website/docs/guides/dependencies.md b/website/docs/guides/dependencies.md index c2c0a6d12c..f5652922b4 100644 --- a/website/docs/guides/dependencies.md +++ b/website/docs/guides/dependencies.md @@ -51,12 +51,7 @@ or scala-cli --repository "https://maven-central.storage-download.googleapis.com/maven2" ``` -jitpack is also supported, for example: -```scala -//> using repository "jitpack" -//> using lib "com.github.bjornregnell:tabby:0.2.3" -``` Both directive and command line option accept predefined repository definitions (see below) or a URL of the root of Maven repository. @@ -73,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 `/local`, usually `/.ivy/local`. | | m2Local | Maven | Local maven repository, localized in `/.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))