Skip to content

Commit bb3c664

Browse files
committed
Fix publish by deactivating 2.12 docs
1 parent bb04f46 commit bb3c664

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

project/BuildHelper.scala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,20 @@ object BuildHelper extends ScalaSettings {
8484
if (scalaVersion.value == Scala3) semanticdbVersion.value
8585
else scalafixSemanticdb.revision
8686
},
87+
// Fix for Scala 2.12 scaladoc "pickler" phase error
88+
Compile / doc / scalacOptions ++= {
89+
CrossVersion.partialVersion(scalaVersion.value) match {
90+
case Some((2, 12)) => Seq("-no-java-comments", "-skip-packages", "akka.pattern")
91+
case _ => Seq.empty
92+
}
93+
},
94+
// Skip doc generation entirely for Scala 2.12 to avoid pickler phase issues
95+
Compile / doc / sources := {
96+
CrossVersion.partialVersion(scalaVersion.value) match {
97+
case Some((2, 12)) => Seq.empty
98+
case _ => (Compile / doc / sources).value
99+
}
100+
},
87101
)
88102

89103
private def shadedSuffix = {

0 commit comments

Comments
 (0)