Replies: 1 comment 2 replies
-
@kubukoz If you use scala-cli
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In sbt (for example), one can compile their Scala to a specific version of JVM bytecode by specifying
javacOptions
:I was unable to do that in scala-cli. I couldn't find docs on how to do it via directives, but found some about CLI parameters, so I tried:
scala-cli package . -f --javac-option -source --javac-option 1.8 --javac-option -target --javac-option 1.8
with this app:
My JVM (Zulu openjdk11) didn't like this:
What am I doing wrong? Is there a directive that'd allow me to pass all these flags inside the source file?
Beta Was this translation helpful? Give feedback.
All reactions