Skip to content

Commit ce2a276

Browse files
committed
chore: allow publishing and do not package the doc for non-bootstrapped
1 parent ea0ec35 commit ce2a276

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

project/Build.scala

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,11 +1391,14 @@ object Build {
13911391
// Make sure that the produced artifacts have the minimum JVM version in the bytecode
13921392
Compile / javacOptions ++= Seq("--target", Versions.minimumJVMVersion),
13931393
Compile / scalacOptions ++= Seq("--java-output-version", Versions.minimumJVMVersion),
1394+
// Packaging configuration of the stdlib
1395+
Compile / packageBin / publishArtifact := true,
1396+
Compile / packageDoc / publishArtifact := false,
1397+
Compile / packageSrc / publishArtifact := true,
13941398
// Only publish compilation artifacts, no test artifacts
1395-
Compile / publishArtifact := true,
13961399
Test / publishArtifact := false,
1397-
// Do not allow to publish this project for now
1398-
publish / skip := true,
1400+
// non-bootstrapped stdlib is publishable (only locally)
1401+
publish / skip := false,
13991402
// Project specific target folder. sbt doesn't like having two projects using the same target folder
14001403
target := target.value / "scala-library-nonbootstrapped",
14011404
)
@@ -1426,11 +1429,14 @@ object Build {
14261429
Test / compile := (`scala-library-nonbootstrapped` / Test / compile).value,
14271430
Test / doc := (`scala-library-nonbootstrapped` / Test / doc).value,
14281431
Test / run := (`scala-library-nonbootstrapped` / Test / run).evaluated,
1432+
// Packaging configuration of the stdlib
1433+
Compile / packageBin / publishArtifact := true,
1434+
Compile / packageDoc / publishArtifact := false,
1435+
Compile / packageSrc / publishArtifact := true,
14291436
// Only publish compilation artifacts, no test artifacts
1430-
Compile / publishArtifact := true,
14311437
Test / publishArtifact := false,
14321438
// Do not allow to publish this project for now
1433-
publish / skip := true,
1439+
publish / skip := false,
14341440
// Project specific target folder. sbt doesn't like having two projects using the same target folder
14351441
target := target.value / "scala3-library-nonbootstrapped",
14361442
)
@@ -1562,11 +1568,14 @@ object Build {
15621568
// Make sure that the produced artifacts have the minimum JVM version in the bytecode
15631569
Compile / javacOptions ++= Seq("--target", Versions.minimumJVMVersion),
15641570
Compile / scalacOptions ++= Seq("--java-output-version", Versions.minimumJVMVersion),
1571+
// Packaging configuration of the stdlib
1572+
Compile / packageBin / publishArtifact := true,
1573+
Compile / packageDoc / publishArtifact := false,
1574+
Compile / packageSrc / publishArtifact := true,
15651575
// Only publish compilation artifacts, no test artifacts
1566-
Compile / publishArtifact := true,
15671576
Test / publishArtifact := false,
15681577
// Do not allow to publish this project for now
1569-
publish / skip := true,
1578+
publish / skip := false,
15701579
// Project specific target folder. sbt doesn't like having two projects using the same target folder
15711580
target := target.value / "tasty-core-nonbootstrapped",
15721581
// sbt adds all the projects to scala-tool config which breaks building the scalaInstance
@@ -1623,11 +1632,14 @@ object Build {
16231632
// Make sure that the produced artifacts have the minimum JVM version in the bytecode
16241633
Compile / javacOptions ++= Seq("--target", Versions.minimumJVMVersion),
16251634
Compile / scalacOptions ++= Seq("--java-output-version", Versions.minimumJVMVersion),
1635+
// Packaging configuration of the stdlib
1636+
Compile / packageBin / publishArtifact := true,
1637+
Compile / packageDoc / publishArtifact := false,
1638+
Compile / packageSrc / publishArtifact := true,
16261639
// Only publish compilation artifacts, no test artifacts
1627-
Compile / publishArtifact := true,
16281640
Test / publishArtifact := false,
16291641
// Do not allow to publish this project for now
1630-
publish / skip := true,
1642+
publish / skip := false,
16311643
// Project specific target folder. sbt doesn't like having two projects using the same target folder
16321644
target := target.value / "scala3-compiler-nonbootstrapped",
16331645
// Generate compiler.properties, used by sbt

0 commit comments

Comments
 (0)