Skip to content

Commit 17ba2fa

Browse files
authored
Merge pull request #3669 from Gedochao/release/v1.8.0
Add release notes for Scala CLI v1.8.0
2 parents 314479e + b11c8a0 commit 17ba2fa

File tree

2 files changed

+184
-1
lines changed

2 files changed

+184
-1
lines changed

modules/docs-tests/src/test/scala/sclicheck/DocTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import java.util.concurrent.TimeUnit
55
import scala.concurrent.duration.FiniteDuration
66

77
class DocTests extends munit.FunSuite {
8-
override def munitTimeout = new FiniteDuration(360, TimeUnit.SECONDS)
8+
override def munitTimeout = new FiniteDuration(480, TimeUnit.SECONDS)
99
case class DocTestEntry(name: String, path: os.Path, depth: Int = Int.MaxValue)
1010

1111
val docsRootPath: os.Path = os.pwd / "website" / "docs"

website/docs/release_notes.md

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

99
# Release notes
1010

11+
## [v1.8.0](https://github.com/VirtusLab/scala-cli/releases/tag/v1.8.0)
12+
13+
### Support for Scala 3.7.0
14+
This Scala CLI version switches the default Scala version to 3.7.0.
15+
16+
```bash
17+
scala-cli version
18+
# Scala CLI version: 1.8.0
19+
# Scala version (default): 3.7.0
20+
```
21+
22+
Added by [@Gedochao](https://github.com/Gedochao) in [#3661](https://github.com/VirtusLab/scala-cli/pull/3661)
23+
24+
### Support for Scala.js 1.19.0
25+
This Scala CLI version adds support for Scala.js 1.19.0.
26+
27+
```bash
28+
scala-cli -e 'println("Hello")' --js
29+
# Compiling project (Scala 3.7.0, Scala.js 1.19.0)
30+
# Compiled project (Scala 3.7.0, Scala.js 1.19.0)
31+
# Hello
32+
```
33+
34+
Added in [#3643](https://github.com/VirtusLab/scala-cli/pull/3643) and [scala-js-cli#134](https://github.com/VirtusLab/scala-js-cli/pull/134)
35+
36+
### Drop support for Scala older than 3.3 in `runner` and `test-runner` modules
37+
Starting with Scala CLI v1.8.0, the `runner` and `test-runner` modules are built with Scala 3.3.5 LTS (on par with other modules built with Scala 3).
38+
They used to be built with Scala 3.0.2, as those modules may get added to the project class path when running, respectively,
39+
the main scope and tests. This means that if the application is using pre-3.3 Scala 3, TASTy versions will be incompatible.
40+
41+
This is mostly informative, as the change should not be breaking for standard Scala CLI usage, even if an older Scala 3 version is being used.
42+
For builds using Scala older than 3.3, the CLI will automatically fall back to version 1.7.1 of the modules, with an appropriate warning being printed.
43+
As the fallback will not be updated in the future, some Scala CLI features might start breaking at some point, as the APIs will stop being fully in sync.
44+
45+
```bash
46+
scala-cli -e 'println("Hello")' --runner -S 3.1
47+
# [warn] Scala 3.1.3 is no longer supported by the runner module.
48+
# [warn] Defaulting to a legacy runner module version: 1.7.1.
49+
# [warn] To use the latest runner, upgrade Scala to at least Scala 3.3.
50+
# Compiling project (Scala 3.1.3, JVM (17))
51+
# Compiled project (Scala 3.1.3, JVM (17))
52+
# Hello
53+
```
54+
55+
```bash ignore
56+
scala-cli test . -S 3.2
57+
# [warn] Scala 3.2.2 is no longer supported by the test-runner module.
58+
# [warn] Defaulting to a legacy test-runner module version: 1.7.1.
59+
# [warn] To use the latest test-runner, upgrade Scala to at least 3.3.
60+
# Compiling project (test, Scala 3.2.2, JVM (17))
61+
# Compiled project (test, Scala 3.2.2, JVM (17))
62+
# Test run started
63+
# Test MyTests.foo started
64+
# Hello, world!
65+
# Test MyTests.foo finished, took 0.001 sec
66+
# Test run finished: 0 failed, 0 ignored, 1 total, 0.003s
67+
```
68+
69+
Realistically, the change is only breaking for apps using those modules directly themselves, either depending on them or using them to run things.
70+
In either case, it is recommended to update Scala up to at least 3.3 LTS.
71+
72+
Added by [@Gedochao](https://github.com/Gedochao) in [#3650](https://github.com/VirtusLab/scala-cli/pull/3650)
73+
74+
### Scala CLI now detects and runs multiple test frameworks, rather than just one
75+
When running tests in a project with multiple test frameworks in use, Scala CLI will now attempt to detect and run all of them, rather than just one.
76+
77+
```bash ignore
78+
scala-cli test .
79+
# Compiling project (Scala 3.7.0, JVM (23))
80+
# Compiled project (Scala 3.7.0, JVM (23))
81+
# Compiling project (test, Scala 3.7.0, JVM (23))
82+
# Compiled project (test, Scala 3.7.0, JVM (23))
83+
# Munit:
84+
# + foo 0.007s
85+
# -------------------------------- Running Tests --------------------------------
86+
# + MyTests.foo 1ms
87+
# Tests: 1, Passed: 1, Failed: 0
88+
# + SimpleSpec
89+
# Hello from zio-test
90+
# + print hello and assert true
91+
# 1 tests passed. 0 tests failed. 0 tests ignored.
92+
#
93+
# Executed in 97 ms
94+
#
95+
# Completed tests
96+
# ScalaTestSpec:
97+
# example
98+
# - should work
99+
# Run completed in 44 milliseconds.
100+
# Total number of tests run: 1
101+
# Suites: completed 1, aborted 0
102+
# Tests: succeeded 1, failed 0, canceled 0, ignored 0, pending 0
103+
# All tests passed.
104+
```
105+
106+
Additionally, it is now possible to pre-define multiple test frameworks to use (rather than just one, as was possible before).
107+
108+
```scala compile
109+
//> using test.frameworks org.scalatest.tools.Framework munit.Framework custom.CustomFramework
110+
```
111+
112+
Pre-defining test frameworks may be preferable for bigger projects, as it allows to skip framework detection and run them directly.
113+
This is significant particularly for running tests with Scala Native and Scala.js.
114+
115+
Added by [@Gedochao](https://github.com/Gedochao) in [#3653](https://github.com/VirtusLab/scala-cli/pull/3653)
116+
117+
### Features
118+
* Support the `--test` flag with the `publish` & `publish local` sub-commands by [@Gedochao](https://github.com/Gedochao) in [#3538](https://github.com/VirtusLab/scala-cli/pull/3538)
119+
* Misc no-op and/or error handling for the `--test` command line flag by [@Gedochao](https://github.com/Gedochao) in [#3586](https://github.com/VirtusLab/scala-cli/pull/3586)
120+
* Add scala-cli version to the BuildInfo by [@yadavan88](https://github.com/yadavan88) in [#3617](https://github.com/VirtusLab/scala-cli/pull/3617)
121+
* `fix` sub-command tweaks by [@Gedochao](https://github.com/Gedochao) in [#3646](https://github.com/VirtusLab/scala-cli/pull/3646)
122+
* Run all found test frameworks, rather than just one by [@Gedochao](https://github.com/Gedochao) in [#3621](https://github.com/VirtusLab/scala-cli/pull/3621)
123+
* Allow to preconfigure multiple test frameworks by [@Gedochao](https://github.com/Gedochao) in [#3653](https://github.com/VirtusLab/scala-cli/pull/3653)
124+
* Add support for some missing Scala compiler options & aliases without the need for `-O` by [@Gedochao](https://github.com/Gedochao) in [#3665](https://github.com/VirtusLab/scala-cli/pull/3665)
125+
* Add support for the --repl-quit-after-init REPL option by [@Gedochao](https://github.com/Gedochao) in [#3664](https://github.com/VirtusLab/scala-cli/pull/3664)
126+
127+
### Fixes
128+
* Fix `fmt` to format the `project.scala` configuration file as any other Scala input by [@Gedochao](https://github.com/Gedochao) in [#3609](https://github.com/VirtusLab/scala-cli/pull/3609)
129+
* Apply `scalafix` rules to test scope inputs, too by [@Gedochao](https://github.com/Gedochao) in [#3641](https://github.com/VirtusLab/scala-cli/pull/3641)
130+
131+
### Internal and build changes
132+
* Cross compile everything on the CI by [@Gedochao](https://github.com/Gedochao) in [#3570](https://github.com/VirtusLab/scala-cli/pull/3570)
133+
* Add tests for the current behaviour of `--cross` by [@Gedochao](https://github.com/Gedochao) in [#3589](https://github.com/VirtusLab/scala-cli/pull/3589)
134+
* Run `test` sub-command integration tests on default JVM settings by [@Gedochao](https://github.com/Gedochao) in [#3592](https://github.com/VirtusLab/scala-cli/pull/3592)
135+
* Retry docs' tests on the CI by [@Gedochao](https://github.com/Gedochao) in [#3618](https://github.com/VirtusLab/scala-cli/pull/3618)
136+
* Move `ScopeOptions` to `SharedOptions` by [@Gedochao](https://github.com/Gedochao) in [#3612](https://github.com/VirtusLab/scala-cli/pull/3612)
137+
* Include missing Scala `3.6.*` versions in `Scala.listAll` by [@Gedochao](https://github.com/Gedochao) in [#3652](https://github.com/VirtusLab/scala-cli/pull/3652)
138+
* Check formatting with Scala CLI, rather than the `scalafmt` launcher itself by [@Gedochao](https://github.com/Gedochao) in [#3660](https://github.com/VirtusLab/scala-cli/pull/3660)
139+
140+
### Documentation changes
141+
* compileOnly option added to the documentation by [@yadavan88](https://github.com/yadavan88) in [#3600](https://github.com/VirtusLab/scala-cli/pull/3600)
142+
* Back port of documentation changes to main by [@github-actions](https://github.com/github-actions) in [#3601](https://github.com/VirtusLab/scala-cli/pull/3601)
143+
* docs: guide for compile only deps by [@scarf005](https://github.com/scarf005) in [#3602](https://github.com/VirtusLab/scala-cli/pull/3602)
144+
* Back port of documentation changes to main by [@github-actions](https://github.com/github-actions) in [#3607](https://github.com/VirtusLab/scala-cli/pull/3607)
145+
* Add missing `using` directive reference docs by [@Gedochao](https://github.com/Gedochao) in [#3608](https://github.com/VirtusLab/scala-cli/pull/3608)
146+
* Back port of documentation changes to main by [@github-actions](https://github.com/github-actions) in [#3610](https://github.com/VirtusLab/scala-cli/pull/3610)
147+
* Fix formatting in directives' reference docs by [@Gedochao](https://github.com/Gedochao) in [#3611](https://github.com/VirtusLab/scala-cli/pull/3611)
148+
* Back port of documentation changes to main by [@github-actions](https://github.com/github-actions) in [#3616](https://github.com/VirtusLab/scala-cli/pull/3616)
149+
* Fixed DEV.md file related to test command by [@yadavan88](https://github.com/yadavan88) in [#3619](https://github.com/VirtusLab/scala-cli/pull/3619)
150+
* Correct doc with --project-version by [@joan38](https://github.com/joan38) in [#3662](https://github.com/VirtusLab/scala-cli/pull/3662)
151+
152+
### Updates
153+
* Bump webfactory/ssh-agent from 0.9.0 to 0.9.1 by [@dependabot](https://github.com/dependabot) in [#3576](https://github.com/VirtusLab/scala-cli/pull/3576)
154+
* Bump react from 18.2.0 to 18.3.1 in /website by [@dependabot](https://github.com/dependabot) in [#3573](https://github.com/VirtusLab/scala-cli/pull/3573)
155+
* Update scala-cli.sh launcher for 1.7.1 by [@github-actions](https://github.com/github-actions) in [#3579](https://github.com/VirtusLab/scala-cli/pull/3579)
156+
* Update guava to 33.4.5-jre by [@scala-steward](https://github.com/scala-steward) in [#3581](https://github.com/VirtusLab/scala-cli/pull/3581)
157+
* Update bloop-rifle_2.13 to 2.0.9 by [@scala-steward](https://github.com/scala-steward) in [#3580](https://github.com/VirtusLab/scala-cli/pull/3580)
158+
* Update sbt, scripted-plugin to 1.10.11 by [@scala-steward](https://github.com/scala-steward) in [#3582](https://github.com/VirtusLab/scala-cli/pull/3582)
159+
* Pin & update docker images by [@Gedochao](https://github.com/Gedochao) in [#3558](https://github.com/VirtusLab/scala-cli/pull/3558)
160+
* Bump clsx from 1.2.1 to 2.1.1 in /website by [@dependabot](https://github.com/dependabot) in [#3560](https://github.com/VirtusLab/scala-cli/pull/3560)
161+
* Bump `docusaurus` to 3.7.0 by [@Gedochao](https://github.com/Gedochao) in [#3585](https://github.com/VirtusLab/scala-cli/pull/3585)
162+
* Bump react-dom from 18.2.0 to 18.3.1 in /website by [@dependabot](https://github.com/dependabot) in [#3587](https://github.com/VirtusLab/scala-cli/pull/3587)
163+
* Bump sass from 1.58.3 to 1.86.0 in /website by [@dependabot](https://github.com/dependabot) in [#3588](https://github.com/VirtusLab/scala-cli/pull/3588)
164+
* Bump @easyops-cn/docusaurus-search-local from 0.49.1 to 0.49.2 in /website by [@dependabot](https://github.com/dependabot) in [#3604](https://github.com/VirtusLab/scala-cli/pull/3604)
165+
* Update asm to 9.8 by [@scala-steward](https://github.com/scala-steward) in [#3606](https://github.com/VirtusLab/scala-cli/pull/3606)
166+
* Update guava to 33.4.6-jre by [@scala-steward](https://github.com/scala-steward) in [#3605](https://github.com/VirtusLab/scala-cli/pull/3605)
167+
* Bump sass from 1.86.0 to 1.86.1 in /website by [@dependabot](https://github.com/dependabot) in [#3603](https://github.com/VirtusLab/scala-cli/pull/3603)
168+
* Bump @mdx-js/react from 3.0.0 to 3.1.0 in /website by [@dependabot](https://github.com/dependabot) in [#3575](https://github.com/VirtusLab/scala-cli/pull/3575)
169+
* Bump sass from 1.86.1 to 1.86.3 in /website by [@dependabot](https://github.com/dependabot) in [#3622](https://github.com/VirtusLab/scala-cli/pull/3622)
170+
* Bump estree-util-value-to-estree from 3.0.1 to 3.3.3 in /website by [@dependabot](https://github.com/dependabot) in [#3623](https://github.com/VirtusLab/scala-cli/pull/3623)
171+
* Update guava to 33.4.7-jre by [@scala-steward](https://github.com/scala-steward) in [#3625](https://github.com/VirtusLab/scala-cli/pull/3625)
172+
* Update Scala Next RC to 3.7.0-RC2 by [@Gedochao](https://github.com/Gedochao) in [#3628](https://github.com/VirtusLab/scala-cli/pull/3628)
173+
* Update core_2.13 to 3.11.0 by [@scala-steward](https://github.com/scala-steward) in [#3630](https://github.com/VirtusLab/scala-cli/pull/3630)
174+
* Update scala3-library to 3.7.0-RC3 by [@scala-steward](https://github.com/scala-steward) in [#3638](https://github.com/VirtusLab/scala-cli/pull/3638)
175+
* Update guava to 33.4.8-jre by [@scala-steward](https://github.com/scala-steward) in [#3637](https://github.com/VirtusLab/scala-cli/pull/3637)
176+
* Bump announced Scala Next RC to 3.7.0-RC2 by [@Gedochao](https://github.com/Gedochao) in [#3636](https://github.com/VirtusLab/scala-cli/pull/3636)
177+
* Bump http-proxy-middleware from 2.0.6 to 2.0.9 in /website by [@dependabot](https://github.com/dependabot) in [#3642](https://github.com/VirtusLab/scala-cli/pull/3642)
178+
* Declare BSP server as capable of providing output paths by [@Gedochao](https://github.com/Gedochao) in [#3645](https://github.com/VirtusLab/scala-cli/pull/3645)
179+
* Update Scala.js to 1.19.0 by [@scala-steward](https://github.com/scala-steward) in [#3643](https://github.com/VirtusLab/scala-cli/pull/3643)
180+
* Update metaconfig-typesafe-config to 0.16.0 by [@scala-steward](https://github.com/scala-steward) in [#3649](https://github.com/VirtusLab/scala-cli/pull/3649)
181+
* Update Scala 3 Next RC to 3.7.0-RC4 by [@scala-steward](https://github.com/scala-steward) in [#3648](https://github.com/VirtusLab/scala-cli/pull/3648)
182+
* Bump sass from 1.86.3 to 1.87.0 in /website by [@dependabot](https://github.com/dependabot) in [#3651](https://github.com/VirtusLab/scala-cli/pull/3651)
183+
* Update semanticdb-shared_2.13 to 4.13.5 by [@scala-steward](https://github.com/scala-steward) in [#3658](https://github.com/VirtusLab/scala-cli/pull/3658)
184+
* Update munit to 1.1.1 by [@scala-steward](https://github.com/scala-steward) in [#3656](https://github.com/VirtusLab/scala-cli/pull/3656)
185+
* Update jsoup to 1.20.1 by [@scala-steward](https://github.com/scala-steward) in [#3655](https://github.com/VirtusLab/scala-cli/pull/3655)
186+
* Update scalafmt-cli_2.13, scalafmt-core to 3.9.5 by [@scala-steward](https://github.com/scala-steward) in [#3657](https://github.com/VirtusLab/scala-cli/pull/3657)
187+
* Bump Scala 3 Next to 3.7.0 by [@Gedochao](https://github.com/Gedochao) in [#3661](https://github.com/VirtusLab/scala-cli/pull/3661)
188+
* Bump Scala 3 Next RC to 3.7.1-RC1 by [@Gedochao](https://github.com/Gedochao) in [#3663](https://github.com/VirtusLab/scala-cli/pull/3663)
189+
* Update `runner` & `test-runner` to Scala 3.3.5 LTS (was 3.0.2) by [@Gedochao](https://github.com/Gedochao) in [#3650](https://github.com/VirtusLab/scala-cli/pull/3650)
190+
* Update `scalafmt` to 3.9.6 by [@scala-steward](https://github.com/scala-steward) in [#3667](https://github.com/VirtusLab/scala-cli/pull/3667)
191+
192+
**Full Changelog**: https://github.com/VirtusLab/scala-cli/compare/v1.7.1...v1.8.0
193+
11194
## [v1.7.1](https://github.com/VirtusLab/scala-cli/releases/tag/v1.7.1)
12195

13196
### Support for Scala 3.6.4

0 commit comments

Comments
 (0)