Skip to content

Commit

Permalink
Scala 3.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Apr 12, 2024
1 parent bb76dda commit 7ee188c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
9 changes: 9 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ lazy val scalaz = Project(
description := "scalaz unidoc",
artifacts := Classpaths.artifactDefs(Seq(Compile / packageDoc, Compile / makePom)).value,
packagedArtifacts := Classpaths.packaged(Seq(Compile / packageDoc, Compile / makePom)).value,
ScalaUnidoc / unidoc / unidocAllSources := {
scalaBinaryVersion.value match {
case "3" =>
// TODO OutOfMemoryError
Nil
case _ =>
(ScalaUnidoc / unidoc / unidocAllSources).value
}
},
pomPostProcess := { node =>
import scala.xml._
import scala.xml.transform._
Expand Down
13 changes: 11 additions & 2 deletions project/build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ object build {

private def Scala212 = "2.12.19"
private def Scala213 = "2.13.13"
private def Scala3 = "3.1.0"
private def Scala3 = "3.3.1"

private[this] val buildInfoPackageName = "scalaz"

Expand Down Expand Up @@ -158,6 +158,15 @@ object build {
}
}
},
Compile / doc / sources := {
scalaBinaryVersion.value match {
case "3" =>
// TODO OutOfMemoryError
Nil
case _ =>
(Compile / doc / sources).value
}
},
(Compile / packageSrc / mappings) ++= (Compile / managedSources).value.map{ f =>
// https://github.com/sbt/sbt-buildinfo/blob/v0.7.0/src/main/scala/sbtbuildinfo/BuildInfoPlugin.scala#L58
val buildInfoDir = "sbt-buildinfo"
Expand Down Expand Up @@ -350,7 +359,7 @@ object build {
} ++ SbtOsgi.projectSettings ++ Seq[Sett](
OsgiKeys.additionalHeaders := Map("-removeheaders" -> "Include-Resource,Private-Package")
) ++ Def.settings(
ThisBuild / mimaReportSignatureProblems := true,
ThisBuild / mimaReportSignatureProblems := (scalaBinaryVersion.value != "3"),
mimaPreviousArtifacts := {
scalazMimaBasis.?.value.map {
organization.value % s"${name.value}_${scalaBinaryVersion.value}" % _
Expand Down

0 comments on commit 7ee188c

Please sign in to comment.