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
Copy file name to clipboardExpand all lines: _overviews/core/nightlies.md
+21-6Lines changed: 21 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,27 +10,42 @@ Here's how to find and use these versions.
10
10
11
11
## Scala 3
12
12
13
-
Scala 3 nightly versions are published to Maven Central. If you know the full version number of the nightly you want to use, you can use it just like any other Scala 3 version.
13
+
Scala 3 nightly versions are published to [https://repo.scala-lang.org](https://repo.scala-lang.org). Historically, they used to be published to Maven Central. Old nightly versions of Scala 3 (all the way until `3.8.0-RC1-bin-20250822-658c8bd-NIGHTLY` in August 2025) are still available there.
14
+
15
+
If you know the full version number of the nightly you want to use, you can use it just like any other Scala 3 version.
14
16
15
17
One quick way to get that version number is to visit [https://dotty.epfl.ch](https://dotty.epfl.ch) and look in the upper left corner.
16
18
17
-
Another way is to scrape Maven Central, as shown in this script: [https://raw.githubusercontent.com/VirtusLab/community-build3/master/scripts/lastVersionNightly.sc](https://raw.githubusercontent.com/VirtusLab/community-build3/master/scripts/lastVersionNightly.sc)
19
+
Another way is to scrape the artifactory, as shown in this script: [https://raw.githubusercontent.com/VirtusLab/community-build3/master/scripts/lastVersionNightly.sc](https://raw.githubusercontent.com/VirtusLab/community-build3/master/scripts/lastVersionNightly.sc)
20
+
21
+
A third way is to use [scala-cli](https://scala-cli.virtuslab.org), as follows.
18
22
19
-
A third way is to use [scala-cli](https://scala-cli.virtuslab.org), as follows. (Since Scala 3.5.0, the `scala` command runs `scala-cli`.)
23
+
Note 1: Since Scala 3.5.0, the `scala` command in a Scala installation runs `scala-cli`.
20
24
21
-
### scala-cli
25
+
Note 2: The new artifactory is supported since Scala CLI v1.9.0 onwards (or `scala` installed with Scala 3.7.3 or newer).
26
+
27
+
### Scala CLI
22
28
23
29
You can run nightlies with commands such as:
24
30
25
-
scala-cli -S 3.nightly
26
-
scala-cli -S 3.3.nightly
31
+
scala-cli -e 'println("Hello") -S 3.nightly
32
+
scala-cli -e 'println("Hello") -S 3.3.nightly
27
33
28
34
The default command is `repl`, but all the other scala-cli subcommands such as `compile` and `run` work, too. It also works with `//>` directives in your script itself, for example:
29
35
30
36
//> using scala 3.nightly
31
37
32
38
See this [scala-cli doc page](https://scala-cli.virtuslab.org/docs/commands/compile#scala-nightlies) for details.
33
39
40
+
### SBT
41
+
42
+
To use recent nightlies with SBT, adding the appropriate resolver to the build configuration is necessary.
Note that for older nightlies (3.8.0-RC1-bin-20250822-658c8bd-NIGHTLY and before) no such change is necessary, as they were being published to Maven Central.
48
+
34
49
## Scala 2.13 or 2.12
35
50
36
51
We informally refer to Scala 2 “nightly” versions, but technically it's a misnomer. A so-called “nightly” is built for every merged PR.
0 commit comments