From ecbc61d362fe707de1af94aed73124c94d9c136d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Pokrywka?= Date: Sat, 4 Oct 2025 23:04:41 +0200 Subject: [PATCH] Suggest using ivy2Local in the documentation --- .../preprocessing/directives/Repository.scala | 3 ++- website/docs/reference/cli-options.md | 2 +- website/docs/reference/directives.md | 4 +++- .../reference/scala-command/cli-options.md | 2 +- .../docs/reference/scala-command/directives.md | 4 +++- .../scala-command/runner-specification.md | 18 +++++++++--------- 6 files changed, 19 insertions(+), 14 deletions(-) diff --git a/modules/directives/src/main/scala/scala/build/preprocessing/directives/Repository.scala b/modules/directives/src/main/scala/scala/build/preprocessing/directives/Repository.scala index 22472558c0..d7670138b8 100644 --- a/modules/directives/src/main/scala/scala/build/preprocessing/directives/Repository.scala +++ b/modules/directives/src/main/scala/scala/build/preprocessing/directives/Repository.scala @@ -8,6 +8,7 @@ import scala.cli.commands.SpecificationLevel @DirectiveGroupName("Repository") @DirectiveExamples("//> using repository jitpack") @DirectiveExamples("//> using repository sonatype:snapshots") +@DirectiveExamples("//> using repository ivy2Local") @DirectiveExamples("//> using repository m2Local") @DirectiveExamples( "//> using repository https://maven-central.storage-download.googleapis.com/maven2" @@ -38,5 +39,5 @@ object Repository { val usageMsg = """Add repositories for dependency resolution. | - |Accepts predefined repositories supported by Coursier (like `sonatype:snapshots` or `m2Local`) or a URL of the root of Maven repository""".stripMargin + |Accepts predefined repositories supported by Coursier (like `sonatype:snapshots`, `ivy2Local` or `m2Local`) or a URL of the root of Maven repository""".stripMargin } diff --git a/website/docs/reference/cli-options.md b/website/docs/reference/cli-options.md index 7071ecd4c0..8eb27f2435 100644 --- a/website/docs/reference/cli-options.md +++ b/website/docs/reference/cli-options.md @@ -300,7 +300,7 @@ Aliases: `-r`, `--repo` Add repositories for dependency resolution. -Accepts predefined repositories supported by Coursier (like `sonatype:snapshots` or `m2Local`) or a URL of the root of Maven repository +Accepts predefined repositories supported by Coursier (like `sonatype:snapshots`, `ivy2Local` or `m2Local`) or a URL of the root of Maven repository ### `--compiler-plugin` diff --git a/website/docs/reference/directives.md b/website/docs/reference/directives.md index c745910cbf..a52e7cef31 100644 --- a/website/docs/reference/directives.md +++ b/website/docs/reference/directives.md @@ -457,7 +457,7 @@ Enable Python support Add repositories for dependency resolution. -Accepts predefined repositories supported by Coursier (like `sonatype:snapshots` or `m2Local`) or a URL of the root of Maven repository +Accepts predefined repositories supported by Coursier (like `sonatype:snapshots`, `ivy2Local` or `m2Local`) or a URL of the root of Maven repository `//> using repository` _repository_ @@ -466,6 +466,8 @@ Accepts predefined repositories supported by Coursier (like `sonatype:snapshots` `//> using repository sonatype:snapshots` +`//> using repository ivy2Local` + `//> using repository m2Local` `//> using repository https://maven-central.storage-download.googleapis.com/maven2` diff --git a/website/docs/reference/scala-command/cli-options.md b/website/docs/reference/scala-command/cli-options.md index 51df3649d0..370ac5980b 100644 --- a/website/docs/reference/scala-command/cli-options.md +++ b/website/docs/reference/scala-command/cli-options.md @@ -244,7 +244,7 @@ Aliases: `-r`, `--repo` Add repositories for dependency resolution. -Accepts predefined repositories supported by Coursier (like `sonatype:snapshots` or `m2Local`) or a URL of the root of Maven repository +Accepts predefined repositories supported by Coursier (like `sonatype:snapshots`, `ivy2Local` or `m2Local`) or a URL of the root of Maven repository ### `--compiler-plugin` diff --git a/website/docs/reference/scala-command/directives.md b/website/docs/reference/scala-command/directives.md index bbe1af1a29..601ba675d6 100644 --- a/website/docs/reference/scala-command/directives.md +++ b/website/docs/reference/scala-command/directives.md @@ -273,7 +273,7 @@ Set the default platform to Scala.js or Scala Native Add repositories for dependency resolution. -Accepts predefined repositories supported by Coursier (like `sonatype:snapshots` or `m2Local`) or a URL of the root of Maven repository +Accepts predefined repositories supported by Coursier (like `sonatype:snapshots`, `ivy2Local` or `m2Local`) or a URL of the root of Maven repository `//> using repository` _repository_ @@ -282,6 +282,8 @@ Accepts predefined repositories supported by Coursier (like `sonatype:snapshots` `//> using repository sonatype:snapshots` +`//> using repository ivy2Local` + `//> using repository m2Local` `//> using repository https://maven-central.storage-download.googleapis.com/maven2` diff --git a/website/docs/reference/scala-command/runner-specification.md b/website/docs/reference/scala-command/runner-specification.md index 5a4ed7cece..585a3ee9f4 100644 --- a/website/docs/reference/scala-command/runner-specification.md +++ b/website/docs/reference/scala-command/runner-specification.md @@ -216,7 +216,7 @@ Enable/disable Scala Native multithreading support Add repositories for dependency resolution. -Accepts predefined repositories supported by Coursier (like `sonatype:snapshots` or `m2Local`) or a URL of the root of Maven repository +Accepts predefined repositories supported by Coursier (like `sonatype:snapshots`, `ivy2Local` or `m2Local`) or a URL of the root of Maven repository Aliases: `-r` ,`--repo` @@ -1010,7 +1010,7 @@ Enable/disable Scala Native multithreading support Add repositories for dependency resolution. -Accepts predefined repositories supported by Coursier (like `sonatype:snapshots` or `m2Local`) or a URL of the root of Maven repository +Accepts predefined repositories supported by Coursier (like `sonatype:snapshots`, `ivy2Local` or `m2Local`) or a URL of the root of Maven repository Aliases: `-r` ,`--repo` @@ -1605,7 +1605,7 @@ Enable/disable Scala Native multithreading support Add repositories for dependency resolution. -Accepts predefined repositories supported by Coursier (like `sonatype:snapshots` or `m2Local`) or a URL of the root of Maven repository +Accepts predefined repositories supported by Coursier (like `sonatype:snapshots`, `ivy2Local` or `m2Local`) or a URL of the root of Maven repository Aliases: `-r` ,`--repo` @@ -2226,7 +2226,7 @@ Enable/disable Scala Native multithreading support Add repositories for dependency resolution. -Accepts predefined repositories supported by Coursier (like `sonatype:snapshots` or `m2Local`) or a URL of the root of Maven repository +Accepts predefined repositories supported by Coursier (like `sonatype:snapshots`, `ivy2Local` or `m2Local`) or a URL of the root of Maven repository Aliases: `-r` ,`--repo` @@ -2866,7 +2866,7 @@ Enable/disable Scala Native multithreading support Add repositories for dependency resolution. -Accepts predefined repositories supported by Coursier (like `sonatype:snapshots` or `m2Local`) or a URL of the root of Maven repository +Accepts predefined repositories supported by Coursier (like `sonatype:snapshots`, `ivy2Local` or `m2Local`) or a URL of the root of Maven repository Aliases: `-r` ,`--repo` @@ -3482,7 +3482,7 @@ Enable/disable Scala Native multithreading support Add repositories for dependency resolution. -Accepts predefined repositories supported by Coursier (like `sonatype:snapshots` or `m2Local`) or a URL of the root of Maven repository +Accepts predefined repositories supported by Coursier (like `sonatype:snapshots`, `ivy2Local` or `m2Local`) or a URL of the root of Maven repository Aliases: `-r` ,`--repo` @@ -4135,7 +4135,7 @@ Enable/disable Scala Native multithreading support Add repositories for dependency resolution. -Accepts predefined repositories supported by Coursier (like `sonatype:snapshots` or `m2Local`) or a URL of the root of Maven repository +Accepts predefined repositories supported by Coursier (like `sonatype:snapshots`, `ivy2Local` or `m2Local`) or a URL of the root of Maven repository Aliases: `-r` ,`--repo` @@ -4848,7 +4848,7 @@ Enable/disable Scala Native multithreading support Add repositories for dependency resolution. -Accepts predefined repositories supported by Coursier (like `sonatype:snapshots` or `m2Local`) or a URL of the root of Maven repository +Accepts predefined repositories supported by Coursier (like `sonatype:snapshots`, `ivy2Local` or `m2Local`) or a URL of the root of Maven repository Aliases: `-r` ,`--repo` @@ -5817,7 +5817,7 @@ Enable/disable Scala Native multithreading support Add repositories for dependency resolution. -Accepts predefined repositories supported by Coursier (like `sonatype:snapshots` or `m2Local`) or a URL of the root of Maven repository +Accepts predefined repositories supported by Coursier (like `sonatype:snapshots`, `ivy2Local` or `m2Local`) or a URL of the root of Maven repository Aliases: `-r` ,`--repo`