Skip to content
Open
Show file tree
Hide file tree
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
658 changes: 135 additions & 523 deletions .github/workflows/ci.yml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final case class SharedJvmOptions(
javaHome: Option[String] = None,

@Group(HelpGroup.Java.toString)
@HelpMessage("Use a specific JVM, such as `14`, `adopt:11`, or `graalvm:21`, or `system`. " +
@HelpMessage("Use a specific JVM, such as `14`, `temurin:11`, or `graalvm:21`, or `system`. " +
"scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.")
@ValueDescription("jvm-name")
@Tag(tags.should)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import scala.cli.commands.SpecificationLevel

@DirectiveGroupName("JVM version")
@DirectiveExamples("//> using jvm 11")
@DirectiveExamples("//> using jvm adopt:11")
@DirectiveExamples("//> using jvm temurin:11")
@DirectiveExamples("//> using jvm graalvm:21")
@DirectiveUsage(
"//> using jvm _value_",
"`//> using jvm` _value_"
)
@DirectiveDescription(
"Use a specific JVM, such as `14`, `adopt:11`, or `graalvm:21`, or `system`. " +
"Use a specific JVM, such as `14`, `temurin:11`, or `graalvm:21`, or `system`. " +
"scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs."
)
@DirectiveLevel(SpecificationLevel.SHOULD)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import scala.cli.commands.SpecificationLevel
"//> using toolkit _version_",
"""`//> using toolkit` _version_
|
|//> using test.toolkit` _version_
|`//> using test.toolkit` _version_
|""".stripMargin
)
@DirectiveDescription(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ abstract class ExportJsonTestDefinitions extends ScalaCliSuite with TestScalaVer

val exportJsonProc =
// Test --power placed after subcommand name
os.proc(TestUtil.cli, "export", "--power", "--json", ".", "--jvm", "adopt:11")
os.proc(TestUtil.cli, "export", "--power", "--json", ".", "--jvm", "temurin:11")
.call(cwd = root)

val jsonContents = readJson(exportJsonProc.out.text())
Expand All @@ -53,7 +53,7 @@ abstract class ExportJsonTestDefinitions extends ScalaCliSuite with TestScalaVer
|"projectVersion":"1.1.2",
|"scalaVersion":"${Constants.scala3Next}",
|"platform":"JVM",
|"jvmVersion":"adopt:11",
|"jvmVersion":"temurin:11",
|"scopes": {
| "main": {
| "sources": ["${withEscapedBackslashes(root / "Main.scala")}"],
Expand Down
2 changes: 1 addition & 1 deletion website/docs/reference/cli-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ Set the Java home directory

Aliases: `-j`

Use a specific JVM, such as `14`, `adopt:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.
Use a specific JVM, such as `14`, `temurin:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.

### `--jvm-index`

Expand Down
6 changes: 3 additions & 3 deletions website/docs/reference/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,14 @@ Exclude sources from the project

### JVM version

Use a specific JVM, such as `14`, `adopt:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.
Use a specific JVM, such as `14`, `temurin:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.

`//> using jvm` _value_

#### Examples
`//> using jvm 11`

`//> using jvm adopt:11`
`//> using jvm temurin:11`

`//> using jvm graalvm:21`

Expand Down Expand Up @@ -685,7 +685,7 @@ Use a toolkit as dependency (not supported in Scala 2.12), 'default' version for

`//> using toolkit` _version_

//> using test.toolkit` _version_
`//> using test.toolkit` _version_


#### Examples
Expand Down
2 changes: 1 addition & 1 deletion website/docs/reference/scala-command/cli-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ Aliases: `-j`

`SHOULD have` per Scala Runner specification

Use a specific JVM, such as `14`, `adopt:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.
Use a specific JVM, such as `14`, `temurin:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.

### `--jvm-index`

Expand Down
6 changes: 3 additions & 3 deletions website/docs/reference/scala-command/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,14 @@ Exclude sources from the project

### JVM version

Use a specific JVM, such as `14`, `adopt:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.
Use a specific JVM, such as `14`, `temurin:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.

`//> using jvm` _value_

#### Examples
`//> using jvm 11`

`//> using jvm adopt:11`
`//> using jvm temurin:11`

`//> using jvm graalvm:21`

Expand Down Expand Up @@ -479,7 +479,7 @@ Use a toolkit as dependency (not supported in Scala 2.12), 'default' version for

`//> using toolkit` _version_

//> using test.toolkit` _version_
`//> using test.toolkit` _version_


#### Examples
Expand Down
20 changes: 10 additions & 10 deletions website/docs/reference/scala-command/runner-specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ Set the Java home directory

**--jvm**

Use a specific JVM, such as `14`, `adopt:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.
Use a specific JVM, such as `14`, `temurin:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.

Aliases: `-j`

Expand Down Expand Up @@ -721,7 +721,7 @@ Set the Java home directory

**--jvm**

Use a specific JVM, such as `14`, `adopt:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.
Use a specific JVM, such as `14`, `temurin:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.

Aliases: `-j`

Expand Down Expand Up @@ -1048,7 +1048,7 @@ Set the Java home directory

**--jvm**

Use a specific JVM, such as `14`, `adopt:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.
Use a specific JVM, such as `14`, `temurin:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.

Aliases: `-j`

Expand Down Expand Up @@ -1651,7 +1651,7 @@ Set the Java home directory

**--jvm**

Use a specific JVM, such as `14`, `adopt:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.
Use a specific JVM, such as `14`, `temurin:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.

Aliases: `-j`

Expand Down Expand Up @@ -2280,7 +2280,7 @@ Set the Java home directory

**--jvm**

Use a specific JVM, such as `14`, `adopt:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.
Use a specific JVM, such as `14`, `temurin:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.

Aliases: `-j`

Expand Down Expand Up @@ -2928,7 +2928,7 @@ Set the Java home directory

**--jvm**

Use a specific JVM, such as `14`, `adopt:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.
Use a specific JVM, such as `14`, `temurin:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.

Aliases: `-j`

Expand Down Expand Up @@ -3552,7 +3552,7 @@ Set the Java home directory

**--jvm**

Use a specific JVM, such as `14`, `adopt:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.
Use a specific JVM, such as `14`, `temurin:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.

Aliases: `-j`

Expand Down Expand Up @@ -4213,7 +4213,7 @@ Set the Java home directory

**--jvm**

Use a specific JVM, such as `14`, `adopt:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.
Use a specific JVM, such as `14`, `temurin:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.

Aliases: `-j`

Expand Down Expand Up @@ -4934,7 +4934,7 @@ Set the Java home directory

**--jvm**

Use a specific JVM, such as `14`, `adopt:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.
Use a specific JVM, such as `14`, `temurin:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.

Aliases: `-j`

Expand Down Expand Up @@ -5911,7 +5911,7 @@ Set the Java home directory

**--jvm**

Use a specific JVM, such as `14`, `adopt:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.
Use a specific JVM, such as `14`, `temurin:11`, or `graalvm:21`, or `system`. scala-cli uses [coursier](https://get-coursier.io/) to fetch JVMs, so you can use `cs java --available` to list the available JVMs.

Aliases: `-j`

Expand Down
2 changes: 1 addition & 1 deletion website/docs/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4863,7 +4863,7 @@ Added by [@wleczny](https://github.com/wleczny) in [#1505](https://github.com/Vi

The `--jvm` option can now be added via using directives, like
```scala
//> using jvm "adopt:11"
//> using jvm "temurin:11"
```

Added by [@lwronski](https://github.com/lwronski) in [#1539](https://github.com/VirtusLab/scala-cli/pull/1539)
Expand Down
Loading