Skip to content

Commit 717ff13

Browse files
committed
Update the nightlies doc to mention repo.scala-lang.org
1 parent 95cdef8 commit 717ff13

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

_overviews/core/nightlies.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,42 @@ Here's how to find and use these versions.
1010

1111
## Scala 3
1212

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.
1416

1517
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.
1618

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.
1822

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`.
2024

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
2228

2329
You can run nightlies with commands such as:
2430

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
2733

2834
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:
2935

3036
//> using scala 3.nightly
3137

3238
See this [scala-cli doc page](https://scala-cli.virtuslab.org/docs/commands/compile#scala-nightlies) for details.
3339

40+
### SBT
41+
42+
To use recent nightlies with SBT, adding the appropriate resolver to the build configuration is necessary.
43+
44+
ThisBuild / scalaVersion := "3.8.0-RC1-bin-20250916-eb1bb73-NIGHTLY"
45+
ThisBuild / resolvers += Resolver.scalaNightlyRepository
46+
47+
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+
3449
## Scala 2.13 or 2.12
3550

3651
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

Comments
 (0)