Skip to content

Commit 66e9d29

Browse files
committed
fix: do not add scala.util.Properties as the Main-Class in the Manifest
1 parent d5fec8f commit 66e9d29

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

project/Build.scala

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,8 @@ object Build {
12571257
// Should we also patch .sjsir files
12581258
keepSJSIR := false,
12591259
// Generate library.properties, used by scala.util.Properties
1260-
Compile / resourceGenerators += generateLibraryProperties.taskValue
1260+
Compile / resourceGenerators += generateLibraryProperties.taskValue,
1261+
mainClass := None,
12611262
)
12621263

12631264
/* Configuration of the org.scala-lang:scala3-library_3:*.**.**-nonbootstrapped project */
@@ -1299,6 +1300,7 @@ object Build {
12991300
publish / skip := false,
13001301
// Project specific target folder. sbt doesn't like having two projects using the same target folder
13011302
target := target.value / "scala3-library-nonbootstrapped",
1303+
mainClass := None,
13021304
)
13031305

13041306
/* Configuration of the org.scala-lang:scala-library:*.**.**-bootstrapped project */
@@ -1378,6 +1380,7 @@ object Build {
13781380
// Generate Scala 3 runtime properties overlay
13791381
Compile / resourceGenerators += generateLibraryProperties.taskValue,
13801382
bspEnabled := false,
1383+
mainClass := None,
13811384
)
13821385

13831386
/* Configuration of the org.scala-lang:scala3-library_3:*.**.**-bootstrapped project */
@@ -1422,6 +1425,7 @@ object Build {
14221425
// Project specific target folder. sbt doesn't like having two projects using the same target folder
14231426
target := target.value / "scala3-library-bootstrapped",
14241427
bspEnabled := false,
1428+
mainClass := None,
14251429
)
14261430

14271431
/* Configuration of the org.scala-js:scalajs-scalalib_2.13:*.**.**-bootstrapped project */
@@ -1552,6 +1556,7 @@ object Build {
15521556
// Should we also patch .sjsir files
15531557
keepSJSIR := true,
15541558
bspEnabled := false,
1559+
mainClass := None,
15551560
)
15561561

15571562
/* Configuration of the org.scala-lang:scala3-library_sjs1_3:*.**.**-bootstrapped project */
@@ -1594,6 +1599,7 @@ object Build {
15941599
// Project specific target folder. sbt doesn't like having two projects using the same target folder
15951600
target := target.value / "scala3-library",
15961601
bspEnabled := false,
1602+
mainClass := None,
15971603
)
15981604

15991605
// ==============================================================================================

0 commit comments

Comments
 (0)