Skip to content

Commit c0b527d

Browse files
Merge pull request #9917 from dotty-staging/scala3m1
Rename all artefacts from dotty to scala3
2 parents 0525ba0 + 96f7829 commit c0b527d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+402
-404
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393

9494
- name: Test
9595
run: |
96-
./project/scripts/sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/test;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test;sjsCompilerTests/test ;sbt-dotty/scripted scala2-compat/* ;configureIDE"
96+
./project/scripts/sbt ";scala3-bootstrapped/compile ;scala3-bootstrapped/test;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test;sjsCompilerTests/test ;sbt-dotty/scripted scala2-compat/* ;configureIDE"
9797
./project/scripts/bootstrapCmdTests
9898
9999
@@ -116,7 +116,7 @@ jobs:
116116
uses: actions/checkout@v2
117117

118118
- name: Test
119-
run: sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/test"
119+
run: sbt ";scala3-bootstrapped/compile ;scala3-bootstrapped/test"
120120
shell: cmd
121121

122122
- name: Scala.js Test
@@ -262,8 +262,8 @@ jobs:
262262
NIGHTLYBUILD: yes
263263
PGP_PW: ${{ secrets.PGP_PW }} # PGP passphrase
264264
PGP_SECRET: ${{ secrets.PGP_SECRET }} # Export your private and public PGP key to an *.asc file, take the file's contents as a string
265-
SONATYPE_PW: ${{ secrets.SONATYPE_PW }}
266-
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
265+
SONATYPE_PW: ${{ secrets.SONATYPE_PW_ORGSCALALANG }}
266+
SONATYPE_USER: ${{ secrets.SONATYPE_USER_ORGSCALALANG }}
267267

268268
steps:
269269
- name: Checkout cleanup script
@@ -298,7 +298,7 @@ jobs:
298298

299299
- name: Publish Nightly
300300
run: |
301-
./project/scripts/sbtPublish ";project dotty-bootstrapped ;publishSigned ;sonatypeBundleRelease"
301+
./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonatypeBundleRelease"
302302
303303
nightly_documentation:
304304
runs-on: [self-hosted, Linux]
@@ -366,8 +366,8 @@ jobs:
366366
RELEASEBUILD: yes
367367
PGP_PW: ${{ secrets.PGP_PW }} # PGP passphrase
368368
PGP_SECRET: ${{ secrets.PGP_SECRET }} # Export your private and public PGP key to an *.asc file, take the file's contents as a string
369-
SONATYPE_PW: ${{ secrets.SONATYPE_PW }}
370-
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
369+
SONATYPE_PW: ${{ secrets.SONATYPE_PW_ORGSCALALANG }}
370+
SONATYPE_USER: ${{ secrets.SONATYPE_USER_ORGSCALALANG }}
371371

372372
steps:
373373
- name: Checkout cleanup script
@@ -404,7 +404,7 @@ jobs:
404404
run: |
405405
./project/scripts/sbt dist/packArchive
406406
sha256sum dist/target/dotty-* > dist/target/sha256sum.txt
407-
./project/scripts/sbtPublish ";project dotty-bootstrapped ;publishSigned ;sonatypeBundleRelease"
407+
./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonatypeBundleRelease"
408408
echo "name=RELEASE_TAG::${GITHUB_REF#*refs/tags/}" >> $GITHUB_ENV
409409
410410
- name: Create GitHub Release

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ local.sbt
2424
# npm
2525
node_modules
2626

27-
# VS Code
27+
# VS Code
2828
.vscode/
2929
# Metals
3030
.bloop/
@@ -82,8 +82,9 @@ bench/compile.txt
8282
# The vscode app for testing
8383
vscode-dotty/.vscode-test
8484

85-
community-build/dotty-bootstrapped.version
85+
community-build/scala3-bootstrapped.version
8686
community-build/sbt-dotty-sbt
8787

8888
# Vulpix output files
8989
*.check.out
90+
!/dist/bin/

bin/dotc renamed to bin/scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >& /dev/null && pwd)/.."
44

5-
"$ROOT/bin/common" "$ROOT/dist/target/pack/bin/dotc" "$@"
5+
"$ROOT/bin/common" "$ROOT/dist/target/pack/bin/scala" "$@"

bin/dotd renamed to bin/scalac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >& /dev/null && pwd)/.."
44

5-
"$ROOT/bin/common" "$ROOT/dist/target/pack/bin/dotd" "$@"
5+
"$ROOT/bin/common" "$ROOT/dist/target/pack/bin/scalac" "$@"

bin/dotr renamed to bin/scalad

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >& /dev/null && pwd)/.."
44

5-
"$ROOT/bin/common" "$ROOT/dist/target/pack/bin/dotr" "$@"
5+
"$ROOT/bin/common" "$ROOT/dist/target/pack/bin/scalad" "$@"

bin/test/TestScripts.scala

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,53 +45,53 @@ class TestScripts {
4545
@Before def buildUp = deletePackages
4646
@After def tearDown = deletePackages
4747

48-
/** bin/dotc script should be able to build hello world and successfully
49-
* execute it using dotr
48+
/** bin/scalac script should be able to build hello world and successfully
49+
* execute it using scala
5050
*/
5151
@Test def buildAndRunHelloWorld = doUnlessWindows {
52-
val (retDotc, dotcOutput) = executeScript("./bin/dotc ./tests/pos/HelloWorld.scala")
52+
val (retDotc, dotcOutput) = executeScript("./bin/scalac ./tests/pos/HelloWorld.scala")
5353

54-
// Check correct output of building and running dotc
54+
// Check correct output of building and running scalac
5555
assert(
5656
retDotc == 0,
57-
s"bin/dotc script did not run properly. Output:$lineSep$dotcOutput"
57+
s"bin/scalac script did not run properly. Output:$lineSep$dotcOutput"
5858
)
5959

60-
val (retDotr, dotrOutput) = executeScript("./bin/dotr HelloWorld")
60+
val (retDotr, dotrOutput) = executeScript("./bin/scala HelloWorld")
6161
assert(
6262
retDotr == 0 && dotrOutput == "hello world\n",
6363
s"Running hello world exited with status: $retDotr and output: $dotrOutput"
6464
)
6565
}
6666

67-
/** bin/dotc script should be able to detect changes in dotty sources and
67+
/** bin/scalac script should be able to detect changes in dotty sources and
6868
* rebuild dotty if needed
6969
*/
7070
@Test def rebuildIfNecessary = doUnlessWindows {
71-
val (retFirstBuild, out1) = executeScript("./bin/dotc ./tests/pos/HelloWorld.scala")
72-
assert(retFirstBuild == 0, s"building dotc failed: $out1")
71+
val (retFirstBuild, out1) = executeScript("./bin/scalac ./tests/pos/HelloWorld.scala")
72+
assert(retFirstBuild == 0, s"building scalac failed: $out1")
7373

7474
// Create a new file to force rebuild
7575
new JFile("./compiler/src/dotty/tools/dotc/Dummy.scala").createNewFile()
7676

77-
val (retSecondBuild, output) = executeScript("./bin/dotc ./tests/pos/HelloWorld.scala")
77+
val (retSecondBuild, output) = executeScript("./bin/scalac ./tests/pos/HelloWorld.scala")
7878
assert(
7979
retSecondBuild == 0 && output.contains("rebuilding"),
8080
s"Rebuilding the tool should result in jar files being rebuilt. Status: $retSecondBuild, output:$lineSep$output")
8181
}
8282

83-
/** if no changes to dotty, dotc script should be fast */
83+
/** if no changes to dotty, scalac script should be fast */
8484
@Test def beFastOnNoChanges = doUnlessWindows {
85-
val (retFirstBuild, _) = executeScript("./bin/dotc ./tests/pos/HelloWorld.scala")
86-
assert(retFirstBuild == 0, "building dotc failed")
85+
val (retFirstBuild, _) = executeScript("./bin/scalac ./tests/pos/HelloWorld.scala")
86+
assert(retFirstBuild == 0, "building scalac failed")
8787

88-
val (ret, output) = executeScript("./bin/dotc ./tests/pos/HelloWorld.scala")
88+
val (ret, output) = executeScript("./bin/scalac ./tests/pos/HelloWorld.scala")
8989
assert(
9090
ret == 0 && !output.contains("rebuilding"),
9191
s"Project recompiled when it didn't need to be. Status $ret, output:$lineSep$output")
9292
}
9393

94-
/** dotc script should work after corrupting .packages */
94+
/** scalac script should work after corrupting .packages */
9595
@Test def reCreatesPackagesIfNecessary = doUnlessWindows {
9696
import java.nio.file.{Paths, Files}
9797
import java.nio.charset.StandardCharsets
@@ -104,8 +104,8 @@ class TestScripts {
104104

105105
Files.write(Paths.get("./.packages"), contents.getBytes(StandardCharsets.UTF_8))
106106

107-
val (retFirstBuild, output) = executeScript("./bin/dotc ./tests/pos/HelloWorld.scala")
107+
val (retFirstBuild, output) = executeScript("./bin/scalac ./tests/pos/HelloWorld.scala")
108108
assert(output.contains(".packages file corrupted"))
109-
assert(retFirstBuild == 0, "building dotc failed")
109+
assert(retFirstBuild == 0, "building scalac failed")
110110
}
111111
}

build.sbt

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,26 @@
1-
val dotty = Build.dotty
2-
val `dotty-bootstrapped` = Build.`dotty-bootstrapped`
3-
val `dotty-interfaces` = Build.`dotty-interfaces`
4-
val `dotty-doc` = Build.`dotty-doc`
5-
val `dotty-doc-bootstrapped` = Build.`dotty-doc-bootstrapped`
6-
val `dotty-compiler` = Build.`dotty-compiler`
7-
val `dotty-compiler-bootstrapped` = Build.`dotty-compiler-bootstrapped`
8-
val `dotty-library` = Build.`dotty-library`
9-
val `dotty-library-bootstrapped` = Build.`dotty-library-bootstrapped`
10-
val `dotty-library-bootstrappedJS` = Build.`dotty-library-bootstrappedJS`
11-
val `dotty-sbt-bridge` = Build.`dotty-sbt-bridge`
12-
val `dotty-sbt-bridge-tests` = Build.`dotty-sbt-bridge-tests`
13-
val `dotty-staging` = Build.`dotty-staging`
14-
val `dotty-tasty-inspector` = Build.`dotty-tasty-inspector`
15-
val `dotty-language-server` = Build.`dotty-language-server`
16-
val `dotty-bench` = Build.`dotty-bench`
17-
val `dotty-bench-bootstrapped` = Build.`dotty-bench-bootstrapped`
1+
val scala3 = Build.scala3
2+
val `scala3-bootstrapped` = Build.`scala3-bootstrapped`
3+
val `scala3-interfaces` = Build.`scala3-interfaces`
4+
val `scala3-doc` = Build.`scala3-doc`
5+
val `scala3-doc-bootstrapped` = Build.`scala3-doc-bootstrapped`
6+
val `scala3-compiler` = Build.`scala3-compiler`
7+
val `scala3-compiler-bootstrapped` = Build.`scala3-compiler-bootstrapped`
8+
val `scala3-library` = Build.`scala3-library`
9+
val `scala3-library-bootstrapped` = Build.`scala3-library-bootstrapped`
10+
val `scala3-library-bootstrappedJS` = Build.`scala3-library-bootstrappedJS`
11+
val `scala3-sbt-bridge` = Build.`scala3-sbt-bridge`
12+
val `scala3-sbt-bridge-tests` = Build.`scala3-sbt-bridge-tests`
13+
val `scala3-staging` = Build.`scala3-staging`
14+
val `scala3-tasty-inspector` = Build.`scala3-tasty-inspector`
15+
val `scala3-language-server` = Build.`scala3-language-server`
16+
val `scala3-bench` = Build.`scala3-bench`
17+
val `scala3-bench-bootstrapped` = Build.`scala3-bench-bootstrapped`
1818
val `tasty-core` = Build.`tasty-core`
1919
val `tasty-core-bootstrapped` = Build.`tasty-core-bootstrapped`
2020
val `tasty-core-scala2` = Build.`tasty-core-scala2`
21-
val `dotty-tastydoc` = Build.`dotty-tastydoc`
22-
val `dotty-tastydoc-input` = Build.`dotty-tastydoc-input`
23-
val `dotty-bench-run` = Build.`dotty-bench-run`
24-
val `scala-library` = Build.`scala-library`
25-
val `scala-compiler` = Build.`scala-compiler`
26-
val `scala-reflect` = Build.`scala-reflect`
27-
val scalap = Build.scalap
21+
val `scala3-tastydoc` = Build.`scala3-tastydoc`
22+
val `scala3-tastydoc-input` = Build.`scala3-tastydoc-input`
23+
val `scala3-bench-run` = Build.`scala3-bench-run`
2824
val dist = Build.dist
2925
val `community-build` = Build.`community-build`
3026

Submodule fansi updated 1 file
Submodule geny updated 1 file
Submodule os-lib updated 1 file
Submodule scodec updated 1 file

community-build/src/scala/dotty/communitybuild/projects.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import java.nio.charset.StandardCharsets.UTF_8
77
lazy val communitybuildDir: Path = Paths.get(sys.props("user.dir"))
88

99
lazy val compilerVersion: String =
10-
val file = communitybuildDir.resolve("dotty-bootstrapped.version")
10+
val file = communitybuildDir.resolve("scala3-bootstrapped.version")
1111
new String(Files.readAllBytes(file), UTF_8)
1212

1313
lazy val sbtPluginFilePath: String =

dist/bin/common

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ find_lib () {
104104
fi
105105
}
106106

107-
DOTTY_COMP=$(find_lib "*dotty-compiler*")
108-
DOTTY_INTF=$(find_lib "*dotty-interfaces*")
109-
DOTTY_LIB=$(find_lib "*dotty-library*")
110-
DOTTY_STAGING=$(find_lib "*dotty-staging*")
111-
DOTTY_TASTY_INSPECTOR=$(find_lib "*dotty-tasty-inspector*")
107+
DOTTY_COMP=$(find_lib "*scala3-compiler*")
108+
DOTTY_INTF=$(find_lib "*scala3-interfaces*")
109+
DOTTY_LIB=$(find_lib "*scala3-library*")
110+
DOTTY_STAGING=$(find_lib "*scala3-staging*")
111+
DOTTY_TASTY_INSPECTOR=$(find_lib "*scala3-tasty-inspector*")
112112
TASTY_CORE=$(find_lib "*tasty-core*")
113113
SCALA_ASM=$(find_lib "*scala-asm*")
114114
SCALA_LIB=$(find_lib "*scala-library*")

dist/bin/dotr renamed to dist/bin/scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ if [ $execute_repl == true ] || ([ $execute_run == false ] && [ $options_indicat
8989
if [ "$CLASS_PATH" ]; then
9090
cp_arg="-classpath \"$CLASS_PATH\""
9191
fi
92-
echo "Starting dotty REPL..."
93-
eval "\"$PROG_HOME/bin/dotc\" $cp_arg ${java_options[@]} -repl ${residual_args[@]}"
92+
echo "Starting scala3 REPL..."
93+
eval "\"$PROG_HOME/bin/scalac\" $cp_arg ${java_options[@]} -repl ${residual_args[@]}"
9494
elif [ $execute_repl == true ] || [ ${#residual_args[@]} -ne 0 ]; then
9595
cp_arg="$DOTTY_LIB$PSEP$SCALA_LIB"
9696
if [ -z "$CLASS_PATH" ]; then
@@ -99,7 +99,7 @@ elif [ $execute_repl == true ] || [ ${#residual_args[@]} -ne 0 ]; then
9999
cp_arg+="$PSEP$CLASS_PATH"
100100
fi
101101
if [ "$class_path_count" -gt 1 ]; then
102-
echo "warning: multiple classpaths are found, dotr only use the last one."
102+
echo "warning: multiple classpaths are found, scala only use the last one."
103103
fi
104104
if [ $with_compiler == true ]; then
105105
cp_arg+="$PSEP$DOTTY_COMP$PSEP$TASTY_CORE$PSEP$DOTTY_INTF$PSEP$SCALA_ASM$PSEP$DOTTY_STAGING$PSEP$DOTTY_TASTY_INSPECTOR"
File renamed without changes.

dist/bin/dotd renamed to dist/bin/scalad

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ fi
2929

3030
source "$PROG_HOME/bin/common"
3131

32-
# Set dotty-doc dep:
33-
DOTTY_DOC_LIB=$(find_lib "*dotty-doc*")
32+
# Set scala3-doc dep:
33+
DOTTY_DOC_LIB=$(find_lib "*scala3-doc*")
3434

3535
# Set flexmark deps:
3636
FLEXMARK_LIBS=""

docs/_includes/getting-started.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ <h1 id="getting-started">Try Dotty</h1>
88
<p>If you are a Linux or Windows user, download the <a href="https://github.com/lampepfl/dotty/releases">latest release</a>. Optionally add path of the folder <code>bin/</code> to the system environment variable <code>PATH</code>. </p>
99

1010
<p>Now you can compile Scala source code:</p>
11-
<pre><code>dotc hello.scala</code></pre>
11+
<pre><code>scalac hello.scala</code></pre>
1212

13-
<p>To start the REPL, run: <code>dotr</code>.</p>
13+
<p>To start the REPL, run: <code>scala</code>.</p>
1414

1515
<p>Or, you can try Dotty in your browser with <a href="https://scastie.scala-lang.org/?target=dotty">Scastie</a>.</p>
1616

docs/docs/contributing/debug-tests.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ Both are usually pre-installed on macOS and linux distributions.
1515
First, compile the file `tests/debug/while.scala`:
1616

1717
```shell
18-
$ dotc tests/debug/while.scala
18+
$ scalac tests/debug/while.scala
1919
```
2020

2121
Second, run the compiled class with debugging enabled (suppose the main class is `Test`):
2222

2323
```shell
24-
$ dotr -d Test
24+
$ scala -d Test
2525
```
2626

2727
Third, start JDB:
@@ -83,13 +83,13 @@ compiler/test/debug/Gen tests/debug/while.scala > robot
8383
First, compile the file `tests/debug/while.scala`:
8484

8585
```shell
86-
$ dotc tests/debug/while.scala
86+
$ scalac tests/debug/while.scala
8787
```
8888

8989
Second, run the compiled class with debugging enabled:
9090

9191
```shell
92-
$ dotr -d Test
92+
$ scala -d Test
9393
```
9494

9595
Finally, run the expect script:

0 commit comments

Comments
 (0)