Skip to content

Commit 5785323

Browse files
committed
1.0.2 release notes
1 parent 94e437d commit 5785323

File tree

1 file changed

+192
-0
lines changed

1 file changed

+192
-0
lines changed

website/docs/release_notes.md

Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,198 @@ import ReactPlayer from 'react-player'
77

88
# Release notes
99

10+
## [v1.0.2](https://github.com/VirtusLab/scala-cli/releases/tag/v1.0.2)
11+
12+
## What's new
13+
14+
This release brings enhancements to Scala CLI:
15+
- WinGet installation for Windows users
16+
- better navigation with improved build target names
17+
- introducing `new` command for Giter8 project generation
18+
- easier JVM properties management with `.scalaopts` file support.
19+
20+
The release also includes numerous bug fixes, updates, and new contributors.
21+
22+
## Installation via WinGet on Windows
23+
24+
Scala CLI can now be installed via [WinGet](https://learn.microsoft.com/en-gb/windows/package-manager/) on Windows, with
25+
a command such as
26+
27+
```bat
28+
winget install virtuslab.scalacli
29+
```
30+
31+
Added by [@mimoguz](https://github.com/mimoguz) in [#2239](https://github.com/VirtusLab/scala-cli/pull/2239), Thanks!
32+
33+
## Enhanced build target names
34+
35+
Now, the build target name will be derived from the workspace directory that contains it, making it easier for users to
36+
navigate between different projects within a multi-root workspace. Instead of a build target named as `project_XYZ-XYZ`,
37+
you will now see the name like `workspace_XYZ-XYZ`, where `workspace` refers to the name of the workspace directory.
38+
39+
```
40+
.
41+
├── scripts
42+
│ ├── .scala-build
43+
│ │ └── scripts_59f2159dd5
44+
│ └── one.sc
45+
├── skan
46+
│ ├── .scala-build
47+
│ │ └── skan_88b44a2858
48+
│ └── main.scala
49+
└── skan.code-workspace
50+
```
51+
52+
Added by [@MaciejG604](https://github.com/MaciejG604) in [#2201](https://github.com/VirtusLab/scala-cli/pull/2201)
53+
54+
## Introducing 'new' command for Giter8 project generation
55+
56+
Giter8 is a project templating tool for Scala, and its integration within Scala CLI offers efficient way to set up new
57+
projects. By using the `new` command, users can generate new projects based on predefined or custom templates.
58+
59+
For example:
60+
61+
```bash
62+
scala-cli --power new VirtusLab/scala-cli.g8
63+
```
64+
65+
Added by [@zetashift](https://github.com/zetashift) in [#2202](https://github.com/VirtusLab/scala-cli/pull/2202), Thanks!
66+
67+
## Loading Java Properties from `.scalaopts` into ScalaCLI launcher
68+
69+
ScalaCLI allows to load Java properties into `scala-cli` launcher directly from a `.scalaopts` file located in your
70+
current working directory. This will simplify the JVM properties management process, eliminating the need to pass these
71+
properties with each scala-cli execution.
72+
73+
For instance, if `-Djavax.net.ssl.trustStore=cacerts` and `-Dfoo2=bar2` are defined within your `.scalaopts` file, these
74+
values will be loaded into `scala-cli` launcher:
75+
76+
```bash ignore
77+
$ cat .scalaopts
78+
-Djavax.net.ssl.trustStore=cacerts
79+
-Dfoo2=bar2
80+
$ scala-cli run ...
81+
```
82+
83+
Added by [@lwronski](https://github.com/lwronski) in [#2267](https://github.com/VirtusLab/scala-cli/pull/2267)
84+
85+
Please be aware that ScalaCLI will only process Java properties that it recognizes from the `.scalaopts` file. Other JVM
86+
options, such as` -Xms1024m`, will be ignored as they can't be used within native image, and users will be alerted with
87+
a warning message when such non-compliant options are passed.
88+
89+
## Other changes
90+
91+
* Add publish.doc directive by [@lwronski](https://github.com/lwronski)
92+
in [#2245](https://github.com/VirtusLab/scala-cli/pull/2245)
93+
* Fix pgp create with no java 17 by [@MaciejG604](https://github.com/MaciejG604)
94+
in [#2189](https://github.com/VirtusLab/scala-cli/pull/2189)
95+
* Support for running standalone launcher of scala-cli with JVM 8 by [@lwronski](https://github.com/lwronski)
96+
in [#2253](https://github.com/VirtusLab/scala-cli/pull/2253)
97+
98+
### Fixes
99+
100+
* Make dependencies keep their positions when fetching by [@MaciejG604](https://github.com/MaciejG604)
101+
in [#2266](https://github.com/VirtusLab/scala-cli/pull/2266)
102+
* Fix empty position in DependencyFormatErrors by [@MaciejG604](https://github.com/MaciejG604)
103+
in [#2261](https://github.com/VirtusLab/scala-cli/pull/2261)
104+
* Script wrapper verification by [@MaciejG604](https://github.com/MaciejG604)
105+
in [#2227](https://github.com/VirtusLab/scala-cli/pull/2227)
106+
* Fix - include test.resourceDir into sources for test scope by [@lwronski](https://github.com/lwronski)
107+
in [#2235](https://github.com/VirtusLab/scala-cli/pull/2235)
108+
* Fix markdown - allow running .md files that start with a number by [@lwronski](https://github.com/lwronski)
109+
in [#2225](https://github.com/VirtusLab/scala-cli/pull/2225)
110+
* Fix dep update error by [@MaciejG604](https://github.com/MaciejG604)
111+
in [#2211](https://github.com/VirtusLab/scala-cli/pull/2211)
112+
* Add new mechanism for resolving scoped BuildOptions by [@MaciejG604](https://github.com/MaciejG604)
113+
in [#2274](https://github.com/VirtusLab/scala-cli/pull/2274)
114+
* Fix - download cs from coursier-m1 as an archive by [@lwronski](https://github.com/lwronski)
115+
in [#2193](https://github.com/VirtusLab/scala-cli/pull/2193)
116+
* Fix - Truncate file length to 0 when override content by [@lwronski](https://github.com/lwronski)
117+
in [#2188](https://github.com/VirtusLab/scala-cli/pull/2188)
118+
119+
### Documentation changes
120+
121+
* Add mentions that using target directives are experimental by [@MaciejG604](https://github.com/MaciejG604)
122+
in [#2262](https://github.com/VirtusLab/scala-cli/pull/2262)
123+
* Fix inline code in directives docs by [@izzyreal](https://github.com/izzyreal)
124+
in [#2233](https://github.com/VirtusLab/scala-cli/pull/2233)
125+
* Update docs - dependency parameters by [@lwronski](https://github.com/lwronski)
126+
in [#2224](https://github.com/VirtusLab/scala-cli/pull/2224)
127+
* Update directive docs for Platform by [@lwronski](https://github.com/lwronski)
128+
in [#2213](https://github.com/VirtusLab/scala-cli/pull/2213)
129+
130+
### Build and internal changes
131+
132+
* Build changes by [@lwronski](https://github.com/lwronski) in [#2263](https://github.com/VirtusLab/scala-cli/pull/2263)
133+
* Remove file change portion of test by [@MaciejG604](https://github.com/MaciejG604)
134+
in [#2251](https://github.com/VirtusLab/scala-cli/pull/2251)
135+
* Add logging to 'watch with interactive' test by [@MaciejG604](https://github.com/MaciejG604)
136+
in [#2229](https://github.com/VirtusLab/scala-cli/pull/2229)
137+
* Add support for parsing cancel params in native launcher of Scala CLI by [@lwronski](https://github.com/lwronski)
138+
in [#2195](https://github.com/VirtusLab/scala-cli/pull/2195)
139+
140+
### Updates and maintenance
141+
142+
* Update scalafmt-cli_2.13, scalafmt-core to 3.7.7
143+
by [@scala-steward](https://github.com/scala-steward-org/scala-steward)
144+
in [#2271](https://github.com/VirtusLab/scala-cli/pull/2271)
145+
* Update trees_2.13 to 4.8.2 by [@scala-steward](https://github.com/scala-steward-org/scala-steward)
146+
in [#2272](https://github.com/VirtusLab/scala-cli/pull/2272)
147+
* Update core_2.13 to 3.8.16 by [@scala-steward](https://github.com/scala-steward-org/scala-steward)
148+
in [#2270](https://github.com/VirtusLab/scala-cli/pull/2270)
149+
* Update jimfs to 1.3.0 by [@scala-steward](https://github.com/scala-steward-org/scala-steward)
150+
in [#2269](https://github.com/VirtusLab/scala-cli/pull/2269)
151+
* Update scalafmt-cli_2.13, scalafmt-core to 3.7.6
152+
by [@scala-steward](https://github.com/scala-steward-org/scala-steward)
153+
in [#2264](https://github.com/VirtusLab/scala-cli/pull/2264)
154+
* Update trees_2.13 to 4.8.1 by [@scala-steward](https://github.com/scala-steward-org/scala-steward)
155+
in [#2265](https://github.com/VirtusLab/scala-cli/pull/2265)
156+
* Update scalafmt-cli_2.13, scalafmt-core to 3.7.5
157+
by [@scala-steward](https://github.com/scala-steward-org/scala-steward)
158+
in [#2256](https://github.com/VirtusLab/scala-cli/pull/2256)
159+
* Update trees_2.13 to 4.8.0 by [@scala-steward](https://github.com/scala-steward-org/scala-steward)
160+
in [#2257](https://github.com/VirtusLab/scala-cli/pull/2257)
161+
* Update guava to 32.1.1-jre by [@scala-steward](https://github.com/scala-steward-org/scala-steward)
162+
in [#2259](https://github.com/VirtusLab/scala-cli/pull/2259)
163+
* Update coursier-jvm_2.13, ... to 2.1.5 by [@scala-steward](https://github.com/scala-steward-org/scala-steward)
164+
in [#2232](https://github.com/VirtusLab/scala-cli/pull/2232)
165+
* Update sbt to 1.9.0 by [@scala-steward](https://github.com/scala-steward-org/scala-steward)
166+
in [#2222](https://github.com/VirtusLab/scala-cli/pull/2222)
167+
* Update dependency to 0.2.3 by [@scala-steward](https://github.com/scala-steward-org/scala-steward)
168+
in [#2219](https://github.com/VirtusLab/scala-cli/pull/2219)
169+
* Update org.eclipse.jgit to 6.6.0.202305301015-r
170+
by [@scala-steward](https://github.com/scala-steward-org/scala-steward)
171+
in [#2220](https://github.com/VirtusLab/scala-cli/pull/2220)
172+
* Updates - `amm` (`2.5.9`), `scala-library` (`2.12.18`, `2.13.11`) by [@lwronski](https://github.com/lwronski)
173+
in [#2223](https://github.com/VirtusLab/scala-cli/pull/2223)
174+
* Update bsp4j to 2.1.0-M5 by [@scala-steward](https://github.com/scala-steward-org/scala-steward)
175+
in [#2216](https://github.com/VirtusLab/scala-cli/pull/2216)
176+
* Update jsoniter-scala-core, ... to 2.23.2 by [@scala-steward](https://github.com/scala-steward-org/scala-steward)
177+
in [#2217](https://github.com/VirtusLab/scala-cli/pull/2217)
178+
* Update scala-collection-compat to 2.11.0 by [@scala-steward](https://github.com/scala-steward-org/scala-steward)
179+
in [#2221](https://github.com/VirtusLab/scala-cli/pull/2221)
180+
* Update test-runner, tools to 0.4.14 by [@scala-steward](https://github.com/scala-steward-org/scala-steward)
181+
in [#2192](https://github.com/VirtusLab/scala-cli/pull/2192)
182+
* Bump VirtusLab/scala-cli-setup from 1.0.0 to 1.0.1
183+
by [@dependabot](https://docs.github.com/en/code-security/dependabot)
184+
in [#2207](https://github.com/VirtusLab/scala-cli/pull/2207)
185+
* Update guava to 32.0.1-jre by [@scala-steward](https://github.com/scala-steward-org/scala-steward)
186+
in [#2197](https://github.com/VirtusLab/scala-cli/pull/2197)
187+
* Update scala-cli.sh launcher for 1.0.1 by @github-actions in [#2194](https://github.com/VirtusLab/scala-cli/pull/2194)
188+
* Upgrade scripts to latest coursier by [@mkurz](https://github.com/mkurz)
189+
in [#1728](https://github.com/VirtusLab/scala-cli/pull/1728)
190+
191+
## New Contributors
192+
193+
* [@zetashift](https://github.com/zetashift) made their first contribution
194+
in [#2202](https://github.com/VirtusLab/scala-cli/pull/2202)
195+
* [@izzyreal](https://github.com/izzyreal) made their first contribution
196+
in [#2233](https://github.com/VirtusLab/scala-cli/pull/2233)
197+
* [@mimoguz](https://github.com/mimoguz) made their first contribution
198+
in [#2239](https://github.com/VirtusLab/scala-cli/pull/2239)
199+
200+
**Full Changelog**: https://github.com/VirtusLab/scala-cli/compare/v1.0.1...v1.0.2
201+
10202
## [v1.0.1](https://github.com/VirtusLab/scala-cli/releases/tag/v1.0.1)
11203

12204
## What's new

0 commit comments

Comments
 (0)