v0.1.7
Support for printing help from scala compiler
Help from the scala compiler can now be printed without passing any sources:
$ scala-cli --scalac-help
Usage: scalac <options> <source files>
where possible standard options include:
-Dproperty=value Pass -Dproperty=value directly to the runtime system.
-J<flag> Pass <flag> directly to the runtime system.
...
Other scalac print help options (like -X
, -Xshow-phases
, -Vphases
, etc.) are supported as well.
$ scala-cli -Xshow-phases
...
Possible advanced options include:
-Xcheck-macros Check some invariants of macro generated code while
...
Scala CLI is built using mill-scala-cli Mill plugin
We now rely on mill-scala-cli
Mill plugin, which allows compiling Scala modules with Scala CLI rather than with Mill's ZincWorker.
To see more go to mill-scala-cli and try it in your project.
Added in #1042 by @alexarchambault
Add default-file
command
The default-file
sub-command provides sensible default content for files such as .gitignore
or for GitHub actions workflows, for Scala CLI projects.
$ scala-cli default-file --write .gitignore .github/workflows/ci.yml
Wrote .gitignore
Wrote .github/workflows/ci.yml
To see more go to default-file
section in documentation.
Added in #1027 by @alexarchambault
Enhancements
Setup-ide use symlink if target is the same as current launcher
The path to Scala CLI points to the symlink if the launcher path is the same as the canonical path which targets the symlink.
Better messages in doctor
The doctor command now has a better suggestion to update scala-cli
.
In progress
More publishing-related features
- Add pgp {push,pull,key-id} commands by @alexarchambault in #1020
Interactive mode
Other changes
Documentation PRs
- Add more docs for piping sources by @Gedochao in #1053
- Add cookbook - How to use scala-cli in GH actions by @lwronski in #1031
- Update/docusaurus by @lwronski in #1051
- Ensure the latest Scala / Scala.js versions are used in version listings in doc by @alexarchambault in #1034
- Add section about external projects in README by @alexarchambault #1075
Updates
- Update trees_2.13 to 4.5.8 by @scala-steward in #1046
- Update jsoniter-scala-core, ... to 2.13.26 by @scala-steward in #1045
- Use Scala CLI 0.1.6 from Mill to compile project by @alexarchambault in #1037
- Update scala-cli.sh launcher for 0.1.6 by @github-actions in #1035
Build and internal changes
- Use coursier support for ~/.m2/settings.xml for proxy auth by @alexarchambault in #1058
- Tweaking by @alexarchambault in #1057
- Tweak jsoniter-scala dependency by @alexarchambault in #1044
- Use closest previous version when looking for stable Scala versions by @alexarchambault in #1032
- Name target dir with a unique name by @lwronski in #1036
- Use external binary to extract class name from stdin Java sources by @alexarchambault #1068
Contributors
Thank you to all the contributors who made this release possible 🎉
According to git shortlog -sn --no-merges v0.1.6...v0.1.7
these are:
34 Alexandre Archambault
12 Piotr Chabelski
7 Łukasz Wroński
Full Changelog: v0.1.6...v0.1.7