You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Scala CLI version switches the default Scala version to 3.7.2.
15
+
16
+
```bash
17
+
scala-cli version
18
+
# Scala CLI version: 1.8.5
19
+
# Scala version (default): 3.7.2
20
+
```
21
+
22
+
Added by [@Gedochao](https://github.com/Gedochao) in [#3809](https://github.com/VirtusLab/scala-cli/pull/3809)
23
+
24
+
### Add props with input paths for non-script inputs
25
+
2 new properties have been added, to provide a way to access input paths outside of `.sc` scripts:
26
+
- `scala.sources` - full paths of all inputs in the project, separated by `java.io.File.pathSeparator`
27
+
- `scala.source.names` - names of all inputs in the project, separated by `java.io.File.pathSeparator`
28
+
29
+
```scala title=PrintSources.scala compile
30
+
//PrintSources.scala
31
+
@main def main() = {
32
+
println(sys.props("scala.sources"))
33
+
println(sys.props("scala.source.names"))
34
+
}
35
+
```
36
+
37
+
```
38
+
~/PrintSources.scala
39
+
PrintSources.scala
40
+
```
41
+
42
+
These are meant to be an input type agnostic equivalent for the `scriptPath` method available in `.sc` scripts.
43
+
44
+
Added by [@philwalk](https://github.com/philwalk) in [#3799](https://github.com/VirtusLab/scala-cli/pull/3799)
45
+
46
+
### `sonatype:snapshots` points to the new Sonatype Central snapshots repository
47
+
It is no longer necessary to manually add https://central.sonatype.com/repository/maven-snapshots, it is added under the `sonatype:snapshots` alias (along with the old snapshot repository).
48
+
It is also added in all other contexts when snapshots should be used.
49
+
50
+
```scala compile
51
+
//> using repository sonatype:snapshots
52
+
```
53
+
54
+
Added by [@Gedochao](https://github.com/Gedochao) in [#3797](https://github.com/VirtusLab/scala-cli/pull/3797)
55
+
56
+
### Scala CLI nightlies are available again
57
+
We once again publish Scala CLI nightlies. You can use the newest version under the `nightly` tag.
58
+
As pre-1.8.5 Scala CLI versions do not look for them on the new Sonatype Central snapshots repository,
59
+
they will not be visible when called from earlier versions.
60
+
```bash ignore
61
+
scala-cli --cli-version nightly version
62
+
# Scala CLI version: 1.8.4-24-g8ca6c960b-SNAPSHOT
63
+
# Scala version (default): 3.7.2
64
+
```
65
+
66
+
:::info
67
+
The new Sonatype Central Portal retains snapshot versions for 90 days,
68
+
so individual nightly versions will be available to test for a limited time period.
69
+
:::
70
+
71
+
Added by [@Gedochao](https://github.com/Gedochao) in [#3818](https://github.com/VirtusLab/scala-cli/pull/3818)
72
+
73
+
### Features
74
+
* Automatically add the new Sonatype Central Portal snapshots repository when snapshots are expected to be used by [@Gedochao](https://github.com/Gedochao) in [#3797](https://github.com/VirtusLab/scala-cli/pull/3797)
75
+
* Adjust Scala CLI nightly version resolution for the new Maven Central Snapshots repository by [@Gedochao](https://github.com/Gedochao) in [#3818](https://github.com/VirtusLab/scala-cli/pull/3818)
76
+
* provide a way to access paths of source files by [@philwalk](https://github.com/philwalk) in [#3799](https://github.com/VirtusLab/scala-cli/pull/3799)
77
+
* Add more logging for publishing by [@Gedochao](https://github.com/Gedochao) in [#3813](https://github.com/VirtusLab/scala-cli/pull/3813)
78
+
79
+
### Fixes
80
+
* fix for 3789 - updated by [@philwalk](https://github.com/philwalk) in [#3794](https://github.com/VirtusLab/scala-cli/pull/3794)
81
+
* script extension can be either '.sc' or empty string by [@philwalk](https://github.com/philwalk) in [#3802](https://github.com/VirtusLab/scala-cli/pull/3802)
82
+
83
+
### Build and internal changes
84
+
* Tag tests relying on old snapshots as flaky (or remove them where applicable) by [@Gedochao](https://github.com/Gedochao) in [#3817](https://github.com/VirtusLab/scala-cli/pull/3817)
85
+
* Add `--no-fallback` to graalvm native-image configuration by [@lbialy](https://github.com/lbialy) in [#3820](https://github.com/VirtusLab/scala-cli/pull/3820)
86
+
87
+
### Updates
88
+
* Bump react-player from 2.16.0 to 2.16.1 in /website by [@dependabot[bot]](https://github.com/dependabot[bot]) in [#3784](https://github.com/VirtusLab/scala-cli/pull/3784)
89
+
* Update scala-cli.sh launcher for 1.8.4 by [@github-actions[bot]](https://github.com/github-actions[bot]) in [#3787](https://github.com/VirtusLab/scala-cli/pull/3787)
90
+
* Update zip-input-stream to 0.1.3 by [@scala-steward](https://github.com/scala-steward) in [#3792](https://github.com/VirtusLab/scala-cli/pull/3792)
91
+
* Update Scala 3 Next RC to 3.7.2-RC2 by [@scala-steward](https://github.com/scala-steward) in [#3791](https://github.com/VirtusLab/scala-cli/pull/3791)
92
+
* Update java-class-name_3 to 0.1.8 by [@scala-steward](https://github.com/scala-steward) in [#3795](https://github.com/VirtusLab/scala-cli/pull/3795)
93
+
* Update Scala 3 Next announced RC to 3.7.2-RC2 by [@Gedochao](https://github.com/Gedochao) in [#3796](https://github.com/VirtusLab/scala-cli/pull/3796)
94
+
* Update publish to 0.4.3 by [@scala-steward](https://github.com/scala-steward) in [#3801](https://github.com/VirtusLab/scala-cli/pull/3801)
95
+
* Update pprint to 0.9.1 by [@scala-steward](https://github.com/scala-steward) in [#3803](https://github.com/VirtusLab/scala-cli/pull/3803)
96
+
* Update pprint to 0.9.3 by [@scala-steward](https://github.com/scala-steward) in [#3805](https://github.com/VirtusLab/scala-cli/pull/3805)
97
+
* Bump @easyops-cn/docusaurus-search-local from 0.51.1 to 0.52.1 in /website by [@dependabot[bot]](https://github.com/dependabot[bot]) in [#3807](https://github.com/VirtusLab/scala-cli/pull/3807)
98
+
* Update fansi to 0.5.1 by [@scala-steward](https://github.com/scala-steward) in [#3804](https://github.com/VirtusLab/scala-cli/pull/3804)
99
+
* Update Scala 3 Next to 3.7.2 by [@Gedochao](https://github.com/Gedochao) in [#3809](https://github.com/VirtusLab/scala-cli/pull/3809)
100
+
* Update mill-main to 0.12.15 by [@scala-steward](https://github.com/scala-steward) in [#3814](https://github.com/VirtusLab/scala-cli/pull/3814)
101
+
* Update `scalameta` to 4.13.9 by [@scala-steward](https://github.com/scala-steward) in [#3816](https://github.com/VirtusLab/scala-cli/pull/3816)
102
+
* Update scalafmt-cli_2.13, scalafmt-core to 3.9.9 by [@scala-steward](https://github.com/scala-steward) in [#3815](https://github.com/VirtusLab/scala-cli/pull/3815)
103
+
* Update os-lib to 0.11.5 by [@scala-steward](https://github.com/scala-steward) in [#3811](https://github.com/VirtusLab/scala-cli/pull/3811)
104
+
* Set Scala 3.7.2 as the latest announced Scala 3 Next by [@Gedochao](https://github.com/Gedochao) in [#3812](https://github.com/VirtusLab/scala-cli/pull/3812)
105
+
* Bump Bloop to 2.0.13 by [@Gedochao](https://github.com/Gedochao) in [#3821](https://github.com/VirtusLab/scala-cli/pull/3821)
106
+
107
+
## New Contributors
108
+
* [@lbialy](https://github.com/lbialy) made their first contribution in [#3820](https://github.com/VirtusLab/scala-cli/pull/3820)
0 commit comments