@@ -133,6 +133,7 @@ object Build {
133
133
134
134
135
135
val isRelease = sys.env.get(" RELEASEBUILD" ) == Some (" yes" )
136
+ val isBisect = sys.env.get(" BISECTBUILD" ) == Some (" yes" )
136
137
137
138
val dottyVersion = {
138
139
def isNightly = sys.env.get(" NIGHTLYBUILD" ) == Some (" yes" )
@@ -445,7 +446,13 @@ object Build {
445
446
assert(docScalaInstance.loaderCompilerOnly == base.loaderCompilerOnly)
446
447
docScalaInstance
447
448
},
448
- Compile / doc / scalacOptions ++= scalacOptionsDocSettings()
449
+ Compile / doc / scalacOptions ++= scalacOptionsDocSettings(),
450
+ // doc/skip might be ignored and still lead to compilation of doc sources
451
+ Compile / doc / skip := isBisect,
452
+ Compile / doc / sources := {
453
+ if (isBisect) Nil
454
+ else (Compile / doc/ sources).value
455
+ }
449
456
)
450
457
451
458
lazy val commonBenchmarkSettings = Seq (
@@ -1527,10 +1534,13 @@ object Build {
1527
1534
SourceLinksIntegrationTest / test:= ((SourceLinksIntegrationTest / test) dependsOn generateScalaDocumentation.toTask(" " )).value,
1528
1535
).
1529
1536
settings(
1530
- Compile / resourceGenerators ++= Seq (
1531
- generateStaticAssetsTask.taskValue,
1532
- bundleCSS.taskValue
1533
- ),
1537
+ Compile / resourceGenerators ++= {
1538
+ if (isBisect) Nil
1539
+ else Seq (
1540
+ generateStaticAssetsTask.taskValue,
1541
+ bundleCSS.taskValue
1542
+ )
1543
+ },
1534
1544
libraryDependencies ++= Dependencies .flexmarkDeps ++ Seq (
1535
1545
" nl.big-o" % " liqp" % " 0.8.2" ,
1536
1546
" org.jsoup" % " jsoup" % " 1.14.3" , // Needed to process .html files for static site
0 commit comments