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

File tree

64 files changed

+402
-404
lines changed

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

0 commit comments

Comments
 (0)