@@ -91,7 +91,7 @@ final case class SbtCommunityProject(
91
91
dependencies : List [CommunityProject ] = Nil ,
92
92
sbtPublishCommand : String = null ,
93
93
sbtDocCommand : String = null ,
94
- scalacOptions : List [String ] = List ( " -Ycheck-init " )
94
+ scalacOptions : List [String ] = SbtCommunityProject .scalacOptions
95
95
) extends CommunityProject :
96
96
override val binaryName : String = " sbt"
97
97
@@ -127,6 +127,12 @@ final case class SbtCommunityProject(
127
127
s " --addPluginSbtFile= $sbtPluginFilePath"
128
128
)
129
129
130
+ object SbtCommunityProject :
131
+ def scalacOptions = List (
132
+ " -Ycheck:macros" ,
133
+ " -Ycheck-init" ,
134
+ )
135
+
130
136
object projects :
131
137
132
138
private def forceDoc (projects : String * ) =
@@ -452,6 +458,7 @@ object projects:
452
458
project = " verify" ,
453
459
sbtTestCommand = " verifyJVM/test" ,
454
460
sbtDocCommand = " verifyJVM/doc" ,
461
+ scalacOptions = SbtCommunityProject .scalacOptions.filter(_ != " -Ycheck:macros" ) // TODO enable -Ycheck:macros
455
462
)
456
463
457
464
lazy val discipline = SbtCommunityProject (
@@ -473,7 +480,7 @@ object projects:
473
480
sbtTestCommand = " test" ,
474
481
sbtPublishCommand = " coreJVM/publishLocal;coreJS/publishLocal" ,
475
482
dependencies = List (discipline),
476
- scalacOptions = Nil // disable -Ycheck-init
483
+ scalacOptions = SbtCommunityProject .scalacOptions.filter(_ != " -Ycheck-init" )
477
484
)
478
485
479
486
lazy val simulacrumScalafixAnnotations = SbtCommunityProject (
@@ -487,7 +494,8 @@ object projects:
487
494
sbtTestCommand = " set scalaJSStage in Global := FastOptStage;buildJVM;validateAllJS" ,
488
495
sbtPublishCommand = " catsJVM/publishLocal;catsJS/publishLocal" ,
489
496
dependencies = List (discipline, disciplineMunit, scalacheck, simulacrumScalafixAnnotations),
490
- scalacOptions = Nil // disable -Ycheck-init, due to -Xfatal-warning
497
+ scalacOptions = SbtCommunityProject .scalacOptions.filter(_ != " -Ycheck-init" ) // disable -Ycheck-init, due to -Xfatal-warning
498
+
491
499
)
492
500
493
501
lazy val catsMtl = SbtCommunityProject (
0 commit comments