Skip to content

Commit b2b52ea

Browse files
authored
Merge pull request #1398 from wleczny/scala-cli-0.1.15
Release notes for v0.1.15
2 parents 562ed30 + 6085ae7 commit b2b52ea

File tree

1 file changed

+138
-0
lines changed

1 file changed

+138
-0
lines changed

website/docs/release_notes.md

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,144 @@ sidebar_position: 99
55

66
# Release notes
77

8+
## [v0.1.15](https://github.com/VirtusLab/scala-cli/releases/tag/v0.1.15)
9+
10+
## The M1 native launcher is here! (experimental)
11+
12+
We are happy to announce that there is a new dedicated launcher for M1 users. You can find it [here](https://github.com/VirtusLab/scala-cli/releases/download/v0.1.15/scala-cli-aarch64-apple-darwin.gz).
13+
14+
Please note that the `package` sub-command is unstable for this launcher.
15+
16+
Added in [#1396](https://github.com/VirtusLab/scala-cli/pull/1396) by [@lwronski](https://github.com/lwronski)
17+
18+
## `--python` option for `repl` sub-command (experimental)
19+
20+
Passing the `--python` option allows using `ScalaPy` with the `repl` sub-command:
21+
22+
```
23+
▶ scala-cli --python
24+
Welcome to Scala 3.2.0 (17.0.2, Java OpenJDK 64-Bit Server VM).
25+
Type in expressions for evaluation. Or try :help.
26+
27+
scala> import me.shadaj.scalapy.py
28+
29+
scala> py.Dynamic.global.range(1, 4)
30+
val res0: me.shadaj.scalapy.py.Dynamic = range(1, 4)
31+
```
32+
33+
Added in [#1336](https://github.com/VirtusLab/scala-cli/pull/1336) by [@alexarchambault](https://github.com/alexarchambault)
34+
35+
## `-d`, `-classpath` and `compile` sub-command's `--output` options changes
36+
37+
To be backward compatible with the `scala` command, some changes have been made to the following options:
38+
* The `compile` sub-command's `--output` option has been renamed to `--compilation-output`. This option is now also available from the `run` and `package` sub-commands.
39+
40+
```
41+
▶ scala-cli compile Hello.scala --compilation-output out
42+
▶ scala-cli --main-class Hello -classpath out
43+
Hello
44+
```
45+
46+
* The `-d` option is no longer an alias for `--dependency`, but for `--compilation-output`.
47+
* `-O -d -O path/to/compilation/output` now defaults to `-d path/to/compilation/output`.
48+
49+
```
50+
▶ scala-cli compile Hello.scala -d out
51+
▶ scala-cli --main-class Hello -classpath out
52+
Hello
53+
```
54+
55+
* The old `--classpath` option has been renamed to `--print-classpath`.
56+
* `--classpath`, `--class-path` and `-classpath` options are now aliases for the `--extra jars` option.
57+
* `-O -classpath -O path/to/classpath` now defaults to `--extra-jars path/to/classpath`.
58+
59+
```
60+
▶ scala-cli compile --print-classpath Hello.scala
61+
# ~/Projects/debug-test/.scala-build/project_103be31561_103be31561-7a1ed8dde0/classes/main:~/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.2.0/scala3-library_3-3.2.0.jar:~/Library/Caches/ScalaCli/local-repo/v0.1.15/org.virtuslab.scala-cli/runner_3/0.1.15/jars/runner_3.jar:~/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.8/scala-library-2.13.8.jar
62+
```
63+
64+
Added in [#1340](https://github.com/VirtusLab/scala-cli/pull/1340) by [@Gedochao](https://github.com/Gedochao)
65+
66+
## Make inputs optional when `-classpath` and `--main-class` are passed
67+
68+
The following changes have been made to improve backward compatibility with the `scala` command:
69+
* Passing the `--main-class` option along with `-classpath` to the default command now defaults to `run` instead of `repl`:
70+
71+
```
72+
▶ scala-cli --main-class Hello -classpath out
73+
Hello
74+
```
75+
76+
* If the `run` sub-command is passed explicitly, it's sufficient to have a main class on the classpath (inputs aren't necessary then):
77+
78+
```
79+
▶ scala-cli compile Hello.scala -d out
80+
▶ scala-cli run -classpath out
81+
Hello
82+
```
83+
84+
Added in [#1369](https://github.com/VirtusLab/scala-cli/pull/1369) by [@Gedochao](https://github.com/Gedochao)
85+
86+
## Debugging with the `run` and `test` sub-commands
87+
88+
It is now possible to debug code ran by `run` and `test` sub-commands:
89+
90+
```
91+
▶ scala-cli Main.scala --debug
92+
Listening for transport dt_socket at address: 5005
93+
Hello
94+
```
95+
96+
This addresses [#1212](https://github.com/VirtusLab/scala-cli/issues/1212)
97+
98+
Added in [#1389](https://github.com/VirtusLab/scala-cli/pull/1389) by [@wleczny](https://github.com/wleczny)
99+
100+
## `--platform` option
101+
102+
This option can be used to choose the platform, which should be used to compile and run the application.
103+
104+
```
105+
▶ scala-cli Main.scala --platform js
106+
Hello
107+
```
108+
109+
Note that `--platform js` is an alias for `--js` and `--platform native` is an alias for `--native`.
110+
111+
This addresses [#1214](https://github.com/VirtusLab/scala-cli/issues/1214)
112+
113+
Added in [#1347](https://github.com/VirtusLab/scala-cli/pull/1347) by [@wleczny](https://github.com/wleczny)
114+
115+
## Other changes
116+
117+
### Fixes
118+
119+
* Ensure directories are created recursively when the `package` sub-command is called by [@Gedochao](https://github.com/Gedochao) in [#1371](https://github.com/VirtusLab/scala-cli/pull/1371)
120+
* Fix calculation of Scala version and turn off the `-release` flag for 2.12.x < 2.12.5 by [@Gedochao](https://github.com/Gedochao) in [#1377](https://github.com/VirtusLab/scala-cli/pull/1377)
121+
* Fix finding main classes in external jars by [@Gedochao](https://github.com/Gedochao) in [#1380](https://github.com/VirtusLab/scala-cli/pull/1380)
122+
* Fix Js split style SmallModulesFor in pure JVM by [@lwronski](https://github.com/lwronski) in [#1394](https://github.com/VirtusLab/scala-cli/pull/1394)
123+
124+
### Build and internal changes
125+
126+
* Remove mill-scalafix customization by [@alexarchambault](https://github.com/alexarchambault) in [#1360](https://github.com/VirtusLab/scala-cli/pull/1360)
127+
* Split config db stuff to a separate config module by [@alexarchambault](https://github.com/alexarchambault) in [#1367](https://github.com/VirtusLab/scala-cli/pull/1367)
128+
* Detect sip when installed by coursier by [@lwronski](https://github.com/lwronski) in [#1368](https://github.com/VirtusLab/scala-cli/pull/1368)
129+
* Create empty class to enforce resolving ivy deps by mill for dummy modules by [@lwronski](https://github.com/lwronski) in [#1374](https://github.com/VirtusLab/scala-cli/pull/1374)
130+
* Use millw launcher instead of running mill by cs by [@lwronski](https://github.com/lwronski) in [#1375](https://github.com/VirtusLab/scala-cli/pull/1375)
131+
* Add --debug option for integration tests by [@wleczny](https://github.com/wleczny) in [#1378](https://github.com/VirtusLab/scala-cli/pull/1378)
132+
* NIT ScalaVersionUtil refactor by [@Gedochao](https://github.com/Gedochao) in [#1384](https://github.com/VirtusLab/scala-cli/pull/1384)
133+
* Make config module compatible with Java 8 by [@alexarchambault](https://github.com/alexarchambault) in [#1387](https://github.com/VirtusLab/scala-cli/pull/1387)
134+
* Add HTTP proxy-related keys in config module by [@alexarchambault](https://github.com/alexarchambault) in [#1388](https://github.com/VirtusLab/scala-cli/pull/1388)
135+
* Add repositories-related keys in config module by [@alexarchambault](https://github.com/alexarchambault) in [#1395](https://github.com/VirtusLab/scala-cli/pull/1395)
136+
137+
### Updates
138+
139+
* Update scala-cli.sh launcher for 0.1.14 by [@github-actions](https://github.com/features/actions) in [#1362](https://github.com/VirtusLab/scala-cli/pull/1362)
140+
* Update jsoniter-scala-core_2.13 to 2.17.3 by [@scala-steward](https://github.com/scala-steward-org/scala-steward) in [#1364](https://github.com/VirtusLab/scala-cli/pull/1364)
141+
* Update core_2.13 to 3.8.0 by [@scala-steward](https://github.com/scala-steward-org/scala-steward) in [#1365](https://github.com/VirtusLab/scala-cli/pull/1365)
142+
* Bump VirtusLab/scala-cli-setup from 0.1.13 to 0.1.14.1 by [@dependabot](https://docs.github.com/en/code-security/dependabot) in [#1376](https://github.com/VirtusLab/scala-cli/pull/1376)
143+
144+
**Full Changelog**: https://github.com/VirtusLab/scala-cli/compare/v0.1.14...v0.1.15
145+
8146
## [v0.1.14](https://github.com/VirtusLab/scala-cli/releases/tag/v0.1.14)
9147

10148
## Hotfix printing stacktraces from Scala CLI runner for Scala 3.x < 3.2.0

0 commit comments

Comments
 (0)