Questions tagged [scala-cli]
3 questions
3
votes
0 answers
How to use a private Repo with enviroment variables in a scala-cli Script
According to the scala-cli doc you can define a Repo like this:
//> using repository "https://maven-central.storage-download.googleapis.com/maven2"
And you can specify environment variables like this:
//> using publish.secretKey…

pme
- 14,156
- 3
- 52
- 95
2
votes
1 answer
Specify java version in scala-cli scala file
scala-cli can use a specific java version using --jvm adopt:11 cli option like:
scala-cli compile . --jvm adopt:11
There's a java-home directive in scala-cli that can be specified in a scala file.
e.g
// Test.scala
//> using java-home…

TheKojuEffect
- 20,103
- 19
- 89
- 125
0
votes
0 answers
Using scala-cli in containers
Just learned about scala-cli-- very cool-- and thinking about its possibilities for use in containers built off of scripts that non-devs could write: technically skilled people, currently writing elaborate and inscrutable bash scripts, but not up…

SourceSimian
- 682
- 4
- 18