Skip to content

Commit 34339ab

Browse files
committed
do not emit jar files for the legacy artifacts
1 parent 9a8746e commit 34339ab

File tree

1 file changed

+15
-21
lines changed

1 file changed

+15
-21
lines changed

project/Build.scala

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,14 +1257,12 @@ object Build {
12571257
Test / test := (`scala-library-nonbootstrapped` / Test / test).value,
12581258
// Claim that the classes generated by this project are the same as the one we get from `scala-library-nonbootstrapped`
12591259
Compile / classDirectory := (`scala-library-nonbootstrapped` / Compile / classDirectory).value,
1260-
// Packaging configuration of the stdlib
1261-
Compile / packageBin / publishArtifact := true,
1262-
Compile / packageDoc / publishArtifact := false,
1263-
Compile / packageSrc / publishArtifact := true,
1264-
// Only publish compilation artifacts, no test artifacts
1260+
// This artifact is a legacy that only exists to evict projects
1261+
// that depends on it to the newer version and the new artifact.
1262+
// As such, it is published only as a `pom` and it has no `jar`.
1263+
publishMavenStyle := true,
1264+
Compile / publishArtifact := false,
12651265
Test / publishArtifact := false,
1266-
// Do not allow to publish this project for now
1267-
publish / skip := false,
12681266
// Project specific target folder. sbt doesn't like having two projects using the same target folder
12691267
target := target.value / "scala3-library-nonbootstrapped",
12701268
)
@@ -1378,14 +1376,12 @@ object Build {
13781376
Test / run := (`scala-library-bootstrapped` / Test / run).evaluated,
13791377
// Claim that the classes generated by this project are the same as the one we get from `scala-library-bootstrapped`
13801378
Compile / classDirectory := (`scala-library-bootstrapped` / Compile / classDirectory).value,
1381-
// Packaging configuration of the stdlib
1382-
Compile / packageBin / publishArtifact := true,
1383-
Compile / packageDoc / publishArtifact := false,
1384-
Compile / packageSrc / publishArtifact := true,
1385-
// Only publish compilation artifacts, no test artifacts
1379+
// This artifact is a legacy that only exists to evict projects
1380+
// that depends on it to the newer version and the new artifact.
1381+
// As such, it is published only as a `pom` and it has no `jar`.
1382+
publishMavenStyle := true,
1383+
Compile / publishArtifact := false,
13861384
Test / publishArtifact := false,
1387-
// Do not allow to publish this project for now
1388-
publish / skip := false,
13891385
// Project specific target folder. sbt doesn't like having two projects using the same target folder
13901386
target := target.value / "scala3-library-bootstrapped",
13911387
bspEnabled := false,
@@ -1549,14 +1545,12 @@ object Build {
15491545
Test / compile := (`scala-library-sjs` / Test / compile).value,
15501546
Test / doc := (`scala-library-sjs` / Test / doc).value,
15511547
Test / run := (`scala-library-sjs` / Test / run).evaluated,
1552-
// Packaging configuration of the stdlib
1553-
Compile / packageBin / publishArtifact := true,
1554-
Compile / packageDoc / publishArtifact := false,
1555-
Compile / packageSrc / publishArtifact := true,
1556-
// Only publish compilation artifacts, no test artifacts
1548+
// This artifact is a legacy that only exists to evict projects
1549+
// that depends on it to the newer version and the new artifact.
1550+
// As such, it is published only as a `pom` and it has no `jar`.
1551+
publishMavenStyle := true,
1552+
Compile / publishArtifact := false,
15571553
Test / publishArtifact := false,
1558-
// Do not allow to publish this project for now
1559-
publish / skip := false,
15601554
// Project specific target folder. sbt doesn't like having two projects using the same target folder
15611555
target := target.value / "scala3-library",
15621556
bspEnabled := false,

0 commit comments

Comments
 (0)