This is an automated email from the ASF dual-hosted git repository.

mdedetrich pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-management.git


The following commit(s) were added to refs/heads/main by this push:
     new b778545  Fix broken doc generation for Scala 3
b778545 is described below

commit b77854571390bc038a5256117ad3fc47478d8382
Author: Matthew de Detrich <[email protected]>
AuthorDate: Wed May 31 09:18:51 2023 +0200

    Fix broken doc generation for Scala 3
---
 project/Common.scala | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/project/Common.scala b/project/Common.scala
index 884df13..6f3a534 100644
--- a/project/Common.scala
+++ b/project/Common.scala
@@ -14,6 +14,8 @@ object Common extends AutoPlugin {
 
   val currentYear = "2023"
 
+  val isScala3 = Def.setting(scalaBinaryVersion.value == "3")
+
   override lazy val projectSettings: Seq[sbt.Def.Setting[_]] =
     Seq(
       startYear := Some(2022),
@@ -59,10 +61,14 @@ object Common extends AutoPlugin {
         "-doc-title",
         "Apache Pekko Management",
         "-doc-version",
-        version.value,
-        "-skip-packages",
-        "org.apache.pekko.pattern" // for some reason Scaladoc creates this
-      ),
+        version.value) ++
+      // for some reason Scaladoc creates this
+      (if (!isScala3.value)
+         Seq(
+           "-skip-packages",
+           "org.apache.pekko.pattern")
+       else
+         Seq("-skip-packages:org.apache.pekko.pattern")),
       Compile / doc / scalacOptions ++= Seq(
         "-doc-source-url", {
           val branch = if (isSnapshot.value) "master" else s"v${version.value}"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to