Skip to content

Commit

Permalink
Fix unidoc compilation (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
Atry authored Dec 6, 2021
1 parent 8437e6a commit 90fd523
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@ enablePlugins(ScalaUnidocPlugin)

unidocProjectFilter in ScalaUnidoc in unidoc := inProjects(invariantJVM, covariantJVM)

libraryDependencies ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((3, _)) => Nil
case Some((2, 13)) => Seq(compilerPlugin("org.typelevel" %% "kind-projector" % "0.13.2" cross CrossVersion.full))
}
}

ThisBuild / scalacOptions ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((3, _)) => Seq("-Ykind-projector:underscores")
case Some((2, 13)) | Some((2, 12)) => Seq("-Xsource:3", "-P:kind-projector:underscore-placeholders")
}
}

scalacOptions += "-Xexperimental"

0 comments on commit 90fd523

Please sign in to comment.