Skip to content

Commit 1491ac3

Browse files
authored
Add release notes for Scala CLI v1.12.5 (#4190)
1 parent 5ed4f79 commit 1491ac3

1 file changed

Lines changed: 92 additions & 0 deletions

File tree

website/docs/release_notes.md

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,98 @@ import ReactPlayer from 'react-player'
88

99
# Release notes
1010

11+
## [v1.12.5](https://github.com/VirtusLab/scala-cli/releases/tag/v1.12.5)
12+
13+
### `--cross` support for `run`, `package` and `doc` sub-commands (experimental ⚡️)
14+
It is now possible to cross-`run`, cross-`package` and cross-generate docs (`doc`) with the `--cross` command line
15+
option.
16+
- `run` runs each configured combination of Scala version and platform (e.g. JVM, Native, JS) in sequence;
17+
- `package` produces one artifact per cross build, with the Scala version and platform in the artifact name;
18+
- `doc` generates Scaladoc for each cross target into separate output directories.
19+
20+
```scala title=cross.scala
21+
//> using scala 3.3 3.8
22+
@main def main() = println("Hello")
23+
```
24+
25+
```bash
26+
scala-cli run cross.scala --cross --power
27+
scala-cli package cross.scala --cross --power
28+
scala-cli doc cross.scala --cross -o doc-out --power
29+
```
30+
31+
Added by [@Gedochao](https://github.com/Gedochao) in [#3808](https://github.com/VirtusLab/scala-cli/pull/3808), [#4171](https://github.com/VirtusLab/scala-cli/pull/4171) & [#4183](https://github.com/VirtusLab/scala-cli/pull/4183)
32+
33+
### Global `--offline` config key
34+
You can set offline mode globally with the `config` sub-command, so Scala CLI uses the cache and skips network access
35+
without passing `--offline` every time.
36+
37+
```bash ignore
38+
scala-cli config offline true
39+
```
40+
41+
Added by [@Gedochao](https://github.com/Gedochao) in [#3216](https://github.com/VirtusLab/scala-cli/pull/3216)
42+
43+
### Watch extra paths with `--watching` (experimental ⚡️)
44+
Use the `--watching` option or `//> using watching` to have `--watch` re-run when files or directories outside
45+
your sources change (e.g. config or assets).
46+
47+
```bash ignore
48+
scala-cli run . --watch --power --watching ./config --watching ./assets
49+
```
50+
51+
Or in source:
52+
53+
```scala compile power
54+
//> using watching ./config ./assets
55+
```
56+
57+
Added by [@Gedochao](https://github.com/Gedochao) in [#4174](https://github.com/VirtusLab/scala-cli/pull/4174)
58+
59+
### Local `.m2` in `publish local` (experimental ⚡️)
60+
`publish local` now publishes to your local Maven repository (`~/.m2`), so other local projects can depend
61+
on the published artifacts via Maven coordinates.
62+
63+
```bash ignore
64+
scala-cli publish local . --m2 --power
65+
```
66+
67+
Added by [@Gedochao](https://github.com/Gedochao) in [#4179](https://github.com/VirtusLab/scala-cli/pull/4179)
68+
69+
### Features
70+
* Run all cross builds when `--cross` is passed by [@Gedochao](https://github.com/Gedochao) in [#3808](https://github.com/VirtusLab/scala-cli/pull/3808)
71+
* Add a global `--offline` config key by [@Gedochao](https://github.com/Gedochao) in [#3216](https://github.com/VirtusLab/scala-cli/pull/3216)
72+
* Support `--cross` with the `package` sub-command by [@Gedochao](https://github.com/Gedochao) in [#4171](https://github.com/VirtusLab/scala-cli/pull/4171)
73+
* Allow to `--watch` extra paths with `--watching` by [@Gedochao](https://github.com/Gedochao) in [#4174](https://github.com/VirtusLab/scala-cli/pull/4174)
74+
* Add support for `--cross` in the `doc` sub-command by [@Gedochao](https://github.com/Gedochao) in [#4183](https://github.com/VirtusLab/scala-cli/pull/4183)
75+
* Add support for local `.m2` in `publish local` by [@Gedochao](https://github.com/Gedochao) in [#4179](https://github.com/VirtusLab/scala-cli/pull/4179)
76+
77+
### Fixes
78+
* Use Java 17 mapping when generating docs with Scala 3.8+ with `doc` by [@Gedochao](https://github.com/Gedochao) in [#4180](https://github.com/VirtusLab/scala-cli/pull/4180)
79+
* Make test framework discovery on Native more resilient & with better errors by [@Gedochao](https://github.com/Gedochao) in [#4185](https://github.com/VirtusLab/scala-cli/pull/4185)
80+
* Warn when `.java` & `.scala` sources are used in a mixed compilation with `--server=false` by [@Gedochao](https://github.com/Gedochao) in [#4181](https://github.com/VirtusLab/scala-cli/pull/4181)
81+
82+
### Build and internal changes
83+
* Add LLM policy & a PR template by [@Gedochao](https://github.com/Gedochao) in [#4177](https://github.com/VirtusLab/scala-cli/pull/4177)
84+
* Add `AGENTS.md` by [@Gedochao](https://github.com/Gedochao) in [#4178](https://github.com/VirtusLab/scala-cli/pull/4178)
85+
86+
### Updates
87+
* Bump the npm-dependencies group in /website with 3 updates by @dependabot[bot] in [#4165](https://github.com/VirtusLab/scala-cli/pull/4165)
88+
* Bump the github-actions group with 3 updates by @dependabot[bot] in [#4164](https://github.com/VirtusLab/scala-cli/pull/4164)
89+
* Update scala-cli.sh launcher for 1.12.4 by @github-actions[bot] in [#4166](https://github.com/VirtusLab/scala-cli/pull/4166)
90+
* Bump svgo from 3.3.2 to 3.3.3 in /website by @dependabot[bot] in [#4168](https://github.com/VirtusLab/scala-cli/pull/4168)
91+
* Bump immutable from 5.1.4 to 5.1.5 in /website by @dependabot[bot] in [#4167](https://github.com/VirtusLab/scala-cli/pull/4167)
92+
* Bump Mill to 1.1.3 (was 1.1.2) by [@Gedochao](https://github.com/Gedochao) in [#4169](https://github.com/VirtusLab/scala-cli/pull/4169)
93+
* Bump @algolia/client-search from 5.49.1 to 5.49.2 in /website in the npm-dependencies group by @dependabot[bot] in [#4173](https://github.com/VirtusLab/scala-cli/pull/4173)
94+
* Bump the github-actions group with 4 updates by @dependabot[bot] in [#4172](https://github.com/VirtusLab/scala-cli/pull/4172)
95+
* Update Scala 3 Next RC to 3.8.3-RC2 by [@Gedochao](https://github.com/Gedochao) in [#4175](https://github.com/VirtusLab/scala-cli/pull/4175)
96+
* Bump undici from 7.18.2 to 7.24.1 in /website by @dependabot[bot] in [#4182](https://github.com/VirtusLab/scala-cli/pull/4182)
97+
* Bump webfactory/ssh-agent from 0.9.1 to 0.10.0 in the github-actions group by @dependabot[bot] in [#4187](https://github.com/VirtusLab/scala-cli/pull/4187)
98+
* Bump `coursier` to 2.1.25-M24 by [@Gedochao](https://github.com/Gedochao) in [#4184](https://github.com/VirtusLab/scala-cli/pull/4184)
99+
* Bump sass from 1.97.3 to 1.98.0 in /website in the npm-dependencies group by @dependabot[bot] in [#4188](https://github.com/VirtusLab/scala-cli/pull/4188)
100+
101+
**Full Changelog**: https://github.com/VirtusLab/scala-cli/compare/v1.12.4...v1.12.5
102+
11103
## [v1.12.4](https://github.com/VirtusLab/scala-cli/releases/tag/v1.12.4)
12104

13105
This is just a small patch fixing a bug ([#4152](https://github.com/VirtusLab/scala-cli/issues/4152)) breaking Metals support in Scala CLI v1.12.3.

0 commit comments

Comments
 (0)