Skip to content

Commit 7b81867

Browse files
authored
Release notes for v0.1.12 (#1271)
1 parent f6e36f7 commit 7b81867

File tree

1 file changed

+128
-0
lines changed

1 file changed

+128
-0
lines changed

website/docs/release_notes.md

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

66
# Release notes
77

8+
## [v0.1.12](https://github.com/VirtusLab/scala-cli/releases/tag/v0.1.12)
9+
10+
### Add `--spark`, `--spark-standalone` and `--hadoop` options for the `run` sub-command
11+
The `run` sub-command can now run Spark jobs when the `--spark` option is passed.
12+
```text
13+
$ scala-cli run --spark SparkJob.scala
14+
```
15+
Similarly, it's possible to run Hadoop jobs by passing the `--hadoop` option.
16+
```text
17+
scala-cli run --hadoop HadoopJob.java
18+
```
19+
It's also possible to run Spark jobs without a Spark distribution by passing the `--spark-standalone` option.
20+
```text
21+
$ scala-cli run --spark-standalone SparkJob.scala
22+
```
23+
24+
Added in [#1129](https://github.com/VirtusLab/scala-cli/pull/1129) by [alexarchambault](https://github.com/alexarchambault)
25+
26+
### Add the default Scala version to the output of the `version` sub-command
27+
The `version` sub-command now includes both the Scala CLI version and the default Scala version.
28+
```text
29+
$ scala-cli --version
30+
Scala CLI version 0.1.12
31+
Default Scala version: 3.1.3
32+
$ scala-cli -version
33+
Scala CLI version 0.1.12
34+
Default Scala version: 3.1.3
35+
$ scala-cli version
36+
Scala CLI version 0.1.12
37+
Default Scala version: 3.1.3
38+
```
39+
You can also pass the `--cli-version` option to only get the Scala CLI version or the `--scala-version` option
40+
to only get the default Scala version.
41+
```text
42+
$ scala-cli version --cli-version
43+
0.1.12
44+
$ scala-cli version --scala-version
45+
3.1.3
46+
```
47+
This is potentially a breaking change if your automation relies on the output of the `version` sub-command.
48+
49+
Added in [#1262](https://github.com/VirtusLab/scala-cli/pull/1262) by [lwronski](https://github.com/lwronski)
50+
51+
### Enable passing the `scalafmt` configuration with `--scalafmt-conf` and `--scalafmt-conf-str`
52+
It is now possible to pass a custom location of the `scalafmt` configuration with the `--scalafmt-conf` option for the
53+
`fmt` sub-command.
54+
```text
55+
$ scala-cli fmt --scalafmt-conf path/to/the/conf/.scalafmt.conf
56+
```
57+
You can also pass the configuration straight from the terminal with `--scalafmt-conf-str`.
58+
```text
59+
$ scala-cli fmt --scalafmt-conf-str "version=3.5.5
60+
runner.dialect=scala213"
61+
```
62+
Added in [#1227](https://github.com/VirtusLab/scala-cli/pull/1227) by [wleczny](https://github.com/wleczny)
63+
64+
### Enable turning the `--interactive` mode on permanently
65+
It is now possible to set the `--interactive` mode on by default, so that passing it explicitly isn't necessary.
66+
67+
The next time when you run a command with the `--interactive` option set to on, Scala CLI will suggest to turn it on
68+
permanently.
69+
70+
This is recommended for environments where `scala-cli` is used by a human user only (and not by any automation).
71+
72+
```text
73+
$ scala-cli . --interactive
74+
You have run the current scala-cli command with the --interactive mode turned on.
75+
Would you like to leave it on permanently?
76+
[0] Yes
77+
[1] No
78+
0
79+
--interactive is now set permanently. All future scala-cli commands will run with the flag set to true.
80+
If you want to turn this setting off at any point, just run `scala-cli config interactive false`.
81+
Found several main classes. Which would you like to run?
82+
[0] ScalaMainClass2
83+
[1] ScalaMainClass1
84+
[2] scripts.ScalaScript_sc
85+
```
86+
87+
You can also configure it manually with the `config` sub-command, by setting the `interactive` property to `true`.
88+
```text
89+
$ scala-cli config interactive true
90+
```
91+
Added in [#1238](https://github.com/VirtusLab/scala-cli/pull/1238) by [Gedochao](https://github.com/Gedochao)
92+
93+
## Other changes
94+
95+
### Work in progress
96+
* Actionable diagnostics by [lwronski](https://github.com/lwronski) in [#1229](https://github.com/VirtusLab/scala-cli/pull/1229)
97+
98+
#### [SIP-46](https://github.com/scala/improvement-proposals/pull/46)-related
99+
* Restrict directives based on the command used by [romanowski](https://github.com/romanowski) in [#1259](https://github.com/VirtusLab/scala-cli/pull/1259)
100+
101+
#### Documentation
102+
* NIT Improve some website docs by [BlackAnubis7](https://github.com/BlackAnubis7) in [#1243](https://github.com/VirtusLab/scala-cli/pull/1243)
103+
104+
#### Build and internal changes
105+
* Add 0.1.11 release notes to release_notes.md by [BlackAnubis7](https://github.com/BlackAnubis7) in [#1228](https://github.com/VirtusLab/scala-cli/pull/1228)
106+
* Temporary disable test gif by [lwronski](https://github.com/lwronski) in [#1261](https://github.com/VirtusLab/scala-cli/pull/1261)
107+
* aarch64 fixes by [alexarchambault](https://github.com/alexarchambault) in [#1180](https://github.com/VirtusLab/scala-cli/pull/1180)
108+
109+
#### Updates
110+
* Update mill launcher by [alexarchambault](https://github.com/alexarchambault) in [#1269](https://github.com/VirtusLab/scala-cli/pull/1269)
111+
* Update scala-cli.sh launcher for 0.1.11 by [github-actions](https://github.com/features/actions) in [#1230](https://github.com/VirtusLab/scala-cli/pull/1230)
112+
* Update jsoniter-scala-core_2.13 to 2.13.39 by [scala-steward](https://github.com/scala-steward-org/scala-steward) in [#1239](https://github.com/VirtusLab/scala-cli/pull/1239)
113+
* Update trees_2.13 to 4.5.12 by [scala-steward](https://github.com/scala-steward-org/scala-steward) in [#1242](https://github.com/VirtusLab/scala-cli/pull/1242)
114+
* Update jsoniter-scala-core_2.13 to 2.14.2 by [scala-steward](https://github.com/scala-steward-org/scala-steward) in [#1241](https://github.com/VirtusLab/scala-cli/pull/1241)
115+
* Update org name to VirtusLab for downloading scalafmt-native-image by [lwronski](https://github.com/lwronski) in [#1253](https://github.com/VirtusLab/scala-cli/pull/1253)
116+
* Update core_2.13 to 3.7.4 by [scala-steward](https://github.com/scala-steward-org/scala-steward) in [#1247](https://github.com/VirtusLab/scala-cli/pull/1247)
117+
* Update case-app_2.13 to 2.1.0-M15 by [scala-steward](https://github.com/scala-steward-org/scala-steward) in [#1245](https://github.com/VirtusLab/scala-cli/pull/1245)
118+
* Update jsoniter-scala-core_2.13 to 2.15.0 by [scala-steward](https://github.com/scala-steward-org/scala-steward) in [#1246](https://github.com/VirtusLab/scala-cli/pull/1246)
119+
* Update cli-options_2.13, cli_2.13, ... to 0.1.8 by [scala-steward](https://github.com/scala-steward-org/scala-steward) in [#1248](https://github.com/VirtusLab/scala-cli/pull/1248)
120+
* Update metaconfig-typesafe-config to 0.11.1 by [scala-steward](https://github.com/scala-steward-org/scala-steward) in [#1254](https://github.com/VirtusLab/scala-cli/pull/1254)
121+
* Update ammonite to 2.5.4-14-dc4c47bc by [scala-steward](https://github.com/scala-steward-org/scala-steward) in [#1255](https://github.com/VirtusLab/scala-cli/pull/1255)
122+
* Update coursier-jvm_2.13, ... to 2.1.0-M6-53-gb4f448130 by [scala-steward](https://github.com/scala-steward-org/scala-steward) in [#1256](https://github.com/VirtusLab/scala-cli/pull/1256)
123+
* Update scala-packager-cli_2.13, ... to 0.1.27 by [scala-steward](https://github.com/scala-steward-org/scala-steward) in [#1258](https://github.com/VirtusLab/scala-cli/pull/1258)
124+
* Update bloop-config_2.13 to 1.5.3-sc-1 by [scala-steward](https://github.com/scala-steward-org/scala-steward) in [#1257](https://github.com/VirtusLab/scala-cli/pull/1257)
125+
* Update ammonite to 2.5.4-15-f4a8969b by [scala-steward](https://github.com/scala-steward-org/scala-steward) in [#1264](https://github.com/VirtusLab/scala-cli/pull/1264)
126+
* Update trees_2.13 to 4.5.13 by [scala-steward](https://github.com/scala-steward-org/scala-steward) in [#1265](https://github.com/VirtusLab/scala-cli/pull/1265)
127+
* Update slf4j-nop to 2.0.0 by [scala-steward](https://github.com/scala-steward-org/scala-steward) in [#1273](https://github.com/VirtusLab/scala-cli/pull/1273)
128+
* Update cli-options_2.13, cli_2.13, ... to 0.1.9 by [scala-steward](https://github.com/scala-steward-org/scala-steward) in [#1272](https://github.com/VirtusLab/scala-cli/pull/1272)
129+
* Bump VirtusLab/scala-cli-setup from 0.1.5 to 0.1.11 by [dependabot](https://docs.github.com/en/code-security/dependabot) in [#1274](https://github.com/VirtusLab/scala-cli/pull/1274)
130+
131+
### New Contributors
132+
* [BlackAnubis7](https://github.com/BlackAnubis7) made their first contribution in [#1228](https://github.com/VirtusLab/scala-cli/pull/1228)
133+
134+
**Full Changelog**: https://github.com/VirtusLab/scala-cli/compare/v0.1.11...v0.1.12
135+
8136
## [v0.1.11](https://github.com/VirtusLab/scala-cli/releases/tag/v0.1.11)
9137

10138
### Make `.scalafmt.conf` optional when running the `fmt` command

0 commit comments

Comments
 (0)