Skip to content

Commit bba9991

Browse files
authored
Merge pull request #2341 from VirtusLab/stable
Back port of documentation changes to main
2 parents 694df1d + e0e015f commit bba9991

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

website/docs/_advanced_install.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ scala-cli version
6969
Scala CLI can be installed via [apt](https://wiki.debian.org/Apt) packager tool.
7070

7171
```bash
72-
curl -s --compressed "https://virtuslab.github.io/scala-cli-packages/KEY.gpg" | sudo apt-key add -
72+
curl -sS "https://virtuslab.github.io/scala-cli-packages/KEY.gpg" | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/scala-cli.gpg 2>/dev/null
7373
sudo curl -s --compressed -o /etc/apt/sources.list.d/scala_cli_packages.list "https://virtuslab.github.io/scala-cli-packages/debian/scala_cli_packages.list"
7474
sudo apt update
7575
sudo apt install scala-cli

website/docs/commands/compile.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,11 +489,11 @@ For example, to exclude all files in the `example/scala` directory, add the foll
489489
Compile-only dependencies, allow to include certain libraries exclusively at the time of the compilation. These
490490
dependencies are added to the class path during compilation, but won't be included when the application is run.
491491

492-
To declare a compile-only dependency, you should use the `compileOnly.lib` directive or `--compile-lib` command line
492+
To declare a compile-only dependency, you should use the `compileOnly.dep` directive or `--compile-lib` command line
493493
option. For instance, to include the `jsoniter-scala-macros` library at compile-time, you would use:
494494

495495
```scala title=CompileOnly.scala
496-
//> using compileOnly.lib "com.github.plokhotnyuk.jsoniter-scala::jsoniter-scala-macros:2.23.2"
496+
//> using compileOnly.dep "com.github.plokhotnyuk.jsoniter-scala::jsoniter-scala-macros:2.23.2"
497497
```
498498

499499
or by using the `--compile-lib` command line option:

website/docs/release_notes.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ Whenever overwriting existing Java properties Scala CLI will let you know what w
6161

6262
Added by [@lwronski](https://github.com/lwronski) in [#2317](https://github.com/VirtusLab/scala-cli/pull/2317), Thanks!
6363

64+
## Rename parameter for `publish` command
65+
66+
We've updated the `--version` parameter for the publish command. Now, when specifying the project version, use `--project-version` instead.
67+
68+
```bash ignore
69+
scala-cli publish --project-version 1.0.3 ...
70+
```
6471

6572
## Other changes
6673
* Add custom exception and throw it when node not found in the path by [@lwronski](https://github.com/lwronski) in [#2323](https://github.com/VirtusLab/scala-cli/pull/2323)

0 commit comments

Comments
 (0)