Skip to content

Add //> using jvm "…" directive #1337

Closed
@alexarchambault

Description

@alexarchambault

Is your feature request related to a problem? Please describe.
Users can ask for a custom JVM on the command line, like scala-cli --jvm 11 foo.sc. Yet there's no corresponding using directive.

Describe the solution you'd like
Directives such as these should be accepted by Scala CLI:

//> using jvm "11"
//> using jvm "graalvm-java17:22.2.0"

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions