|
| 1 | +# v0.1.8 |
| 2 | + |
| 3 | +## `--list-main-classes` option for the `run` command |
| 4 | + |
| 5 | +You can pass the option `--list-main-classes` to the `run` command to list all the available main classes, including |
| 6 | +scripts. |
| 7 | + |
| 8 | +``` |
| 9 | +$ scala-cli . --list-main-classes |
| 10 | +Hello scripts.AnotherScript_sc scripts.Script_sc |
| 11 | +``` |
| 12 | + |
| 13 | +Added in [#1095](https://github.com/VirtusLab/scala-cli/pull/1095) by @Gedochao |
| 14 | + |
| 15 | +## Add `config` command |
| 16 | + |
| 17 | +The `config` sub-command allows to get and set various configuration values, intended for use by |
| 18 | +other Scala CLI sub-commands. |
| 19 | + |
| 20 | +This feature has been added in preparation for the `publish` command, stay tuned for future announcements. |
| 21 | + |
| 22 | +Added in [#1056](https://github.com/VirtusLab/scala-cli/pull/1056) by @alexarchambault |
| 23 | + |
| 24 | +## Prioritise non-script main classes |
| 25 | + |
| 26 | +When trying to run a directory containing scripts and just a single non-script main class, the non-script main class |
| 27 | +will now be prioritised and run by default. |
| 28 | + |
| 29 | +``` |
| 30 | +$ scala-cli . |
| 31 | +Running Hello. Also detected script main classes: scripts.AnotherScript_sc, scripts.Script_sc |
| 32 | +You can run any one of them by passing option --main-class, i.e. --main-class scripts.AnotherScript_sc |
| 33 | +All available main classes can always be listed by passing option --list-main-classes |
| 34 | +Hello world |
| 35 | +``` |
| 36 | + |
| 37 | +Changed in [#1095](https://github.com/VirtusLab/scala-cli/pull/1095) by @Gedochao |
| 38 | + |
| 39 | +## Important bugfixes |
| 40 | + |
| 41 | +### Accept latest Scala versions despite stale Scala version listings in cache |
| 42 | + |
| 43 | +Scala CLI uses version listings from Maven Central to check if a Scala version is valid. When new Scala versions are |
| 44 | +released, users could sometimes have stale version listings in their Coursier cache for a short period of time (the |
| 45 | +Coursier cache TTL, which is 24 hours by default). This prevented these users to use new Scala versions during that |
| 46 | +time. |
| 47 | +To work around that, Scala CLI now tries to re-download version listings when they don't have the requested Scala |
| 48 | +version. |
| 49 | +This addresses [#1090](https://github.com/VirtusLab/scala-cli/issues/1090) |
| 50 | + |
| 51 | +Fixed in [#1096](https://github.com/VirtusLab/scala-cli/pull/1096) by @lwronski |
| 52 | + |
| 53 | +### Bloop now uses `JAVA_HOME` by default |
| 54 | + |
| 55 | +Bloop should now pick up the JDK available in `JAVA_HOME`. It was formerly necessary to pass `--bloop-jvm system` |
| 56 | +explicitly. This addresses [#1102](https://github.com/VirtusLab/scala-cli/issues/1102) |
| 57 | + |
| 58 | +Fixed in [#1084](https://github.com/VirtusLab/scala-cli/pull/1084) by @lwronski |
| 59 | + |
| 60 | +### The `-coverage-out` option now accepts relative paths |
| 61 | + |
| 62 | +Scala CLI now correctly processes relative paths when passed to the `-coverage-out` option. Formerly, |
| 63 | +the `scoverage.coverage` file would not be properly generated when a relative path was passed. |
| 64 | +This addresses [#1072](https://github.com/VirtusLab/scala-cli/issues/1072) |
| 65 | + |
| 66 | +Fixed in [#1080](https://github.com/VirtusLab/scala-cli/pull/1080) by @lwronski |
| 67 | + |
| 68 | +## Other changes |
| 69 | + |
| 70 | +### Documentation PRs |
| 71 | + |
| 72 | +* Improve scripts guide by @Gedochao in [#1074](https://github.com/VirtusLab/scala-cli/pull/1074) |
| 73 | +* Update installation instructions for Nix by @kubukoz in [#1082](https://github.com/VirtusLab/scala-cli/pull/1082) |
| 74 | +* Tweak docs by @alexarchambault in [#1085](https://github.com/VirtusLab/scala-cli/pull/1085) |
| 75 | +* Some typos & rewording on the single-module projects use case page by @Baccata |
| 76 | + in [#1089](https://github.com/VirtusLab/scala-cli/pull/1089) |
| 77 | + |
| 78 | +### Fixes |
| 79 | + |
| 80 | +* Add suffix to project name which contains virtual files by @lwronski |
| 81 | + in [#1070](https://github.com/VirtusLab/scala-cli/pull/1070) |
| 82 | + |
| 83 | +### Build and internal changes |
| 84 | + |
| 85 | +* Update scala-cli.sh launcher for 0.1.7 by @github-actions in [#1076](https://github.com/VirtusLab/scala-cli/pull/1076) |
| 86 | +* Tweaking by @alexarchambault in [#1087](https://github.com/VirtusLab/scala-cli/pull/1087) |
| 87 | + |
| 88 | +**Full Changelog**: https://github.com/VirtusLab/scala-cli/compare/v0.1.7...v0.1.8 |
0 commit comments