v0.1.6
Add doc
command
Scala CLI now has a doc
sub-command, that generates javadoc / scaladoc. Use like
$ scala-cli doc . --output scala-doc
You can then open scala-doc/index.html
in your browser.
Accept Java code via standard input
Java code can now be piped to Scala CLI:
$ cat Foo.java
public class Foo {
public static void main(String[] args) {
System.out.println("Hello from Scala CLI");
}
}
$ cat Foo.java | scala-cli _.java
Hello from Scala CLI
Enhancements
Revolver mode alias
The --revolver
option of the run
sub-command now has a --restart
alias. This option interrupts any running application in watch mode upon source changes, rather than waiting for it to exit.
Better messages in export
The export
command now has more and better output.
Better pure Java projects support
When compiling / running pure Java projects, Scala CLI won't download any more Scala test bridges and Scala version listings.
Changed in #982 by @alexarchambault
Suggest users to run scala-cli bloop output
if starting the Bloop server fails
When Scala CLI can't start the Bloop server (that is, its compilation server), it now suggests to run scala-cli bloop output
, which should have more details about what failed.
Changed in #1002 by @alexarchambault
Allow users to pick a main class via an interactive prompt
When passed -i
or --interactive
, if several main classes are detected, Scala CLI now offers users to interactively pick a main class, via a prompt, rather than exiting.
Fixes
Fix possible cause of abrupt Bloop server disconnection upon startup
- Use snailgun fork, allowing to slightly rework nailgun input stream handling by @alexarchambault in #944
Fix handling of UTF-8 characters in file names on Linux
- Add UTF-8 chars in file name test by @alexarchambault in #966
Fix Scala.js and Scala Native help messages
Add workaround for zip CRC32 errors on Arch Linux
- Add workaround for ArchLinux + native-image CRC32 miscalculation issue by @alexarchambault in #865
- Suggest zip issue workaround when apparently running into it by @alexarchambault in #1007
Use 0 TTL when getting Scala nightly versions
In progress
More publishing-related features
- Add "gh secret {list,create}" commands by @alexarchambault in #994
- Allow to publish to Maven Central in publish command by @alexarchambault in #1003
- Add "publish local" command by @alexarchambault in #1008
- Publish fixes by @alexarchambault in #1026
Other changes
Documentation PRs
- Use absolute path for loading images/gifs by @lwronski in #874
- Update directective instruction for tests by @amaalali in #918
- Update using-directives.md by @romanowski in #925
- Back port of documentation changes to main by @github-actions in #969
- java deps directive by @swuecho in #974
- Back port of documentation changes to main by @github-actions in #977
- Back port of documentation changes to main by @github-actions in #987
- Update main-class name for scala-cli 0.1.5 by @lolgab in #990
- Fix typo in education page by @szymon-rd in #1013
Updates
- Update jsoniter-scala-core, ... to 2.13.20 by @scala-steward in #973
- Update trees_2.13 to 4.5.6 by @scala-steward in #983
- Update mill-main to 0.10.4 by @scala-steward in #988
- Update jsoniter-scala-core, ... to 2.13.21 by @scala-steward in #989
- Update bloop-core to 1.5.0-sc-1 by @alexarchambault in #992
- Update client3:core to 3.5.2 by @scala-steward in #1000
- Update client3:core to 3.6.1 by @scala-steward in #1001
- Update jsoniter-scala-core, ... to 2.13.22 by @scala-steward in #1010
- Update jsoniter-scala-core, ... to 2.13.23 by @scala-steward in #1021
- Update coursier-jvm_2.13, ... to 2.1.0-M6 by @scala-steward in #1018
- Update trees_2.13 to 4.5.7 by @scala-steward in #1022
- Update jsoniter-scala-core, ... to 2.13.24 by @scala-steward in #1025
- Update client3:core to 3.6.2 by @scala-steward in #1028
- Update jsoniter-scala-core, ... to 2.13.25 by @scala-steward in #1030
- Update ammonite to 2.5.4 by @scala-steward in #1029
Build and internal changes
- Bump VirtusLab/scala-cli-setup from 267af2f1ed4911180b4bb25619ca4a586753cbd1 to 0.1.4 by @dependabot in #961
- Stop using asciinema/asciinema image by @alexarchambault in #964
- Update scala-cli.sh launcher for 0.1.5 by @github-actions in #968
- Only compile integration tests once by @alexarchambault in #971
- Switch maven status to Scala 3 by @lwronski in #972
- Assembly package size test by @lwronski in #970
- Return exception via the left side of either by @lwronski in #979
- In Doctor, account for absolute and relative paths by @anatoliykmetyuk in #975
- Use deploy key in git checkout by @lwronski in #984
- Fix display Github Action snippet by @lwronski in #986
- Bump docker/login-action from 1 to 2 by @dependabot in #997
- Add ScalaCLI logo.ico for choco by @lwronski in #1004
- Allow forks to build their own launchers by @alexarchambault in #999
- Tweak build (cli2) and scala-cli.sh script by @alexarchambault in #1009
- Don't pass root dir to Mill PathRef by @alexarchambault in #1012
- Bump VirtusLab/scala-cli-setup from 0.1.4 to 0.1.5 by @dependabot in #1014
- Fix typo in Fmt error message by @lwronski in #1017
- Update scala-cli-setup after release by @lwronski in #1019
- Updates for Scala CLI 0.1.6 by @alexarchambault in #1033
New Contributors
- @amaalali made their first contribution in #918
- @swuecho made their first contribution in #974
- @anatoliykmetyuk made their first contribution in #975
- @szymon-rd made their first contribution in #1013
Full Changelog: v0.1.5...v0.1.6