Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update scala3-library to 3.3.4 #449

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ ThisBuild / versionPolicyIntention := Compatibility.BinaryCompatible

def crossSettings[T](scalaVersion: String, if3: List[T], if2: List[T]) =
CrossVersion.partialVersion(scalaVersion) match {
case Some((3, _)) => if3
case Some((3, _)) => if3
case Some((2, 12 | 13)) => if2
case _ => Nil
case _ => Nil
}

lazy val commonSettings = Seq(
Expand All @@ -19,7 +19,7 @@ lazy val commonSettings = Seq(
organizationName := "Evolution",
organizationHomepage := Some(url("https://evolution.com")),
scalaVersion := crossScalaVersions.value.head,
crossScalaVersions := Seq("2.13.12", "3.3.1", "2.12.18"),
crossScalaVersions := Seq("2.13.12", "3.3.4", "2.12.18"),
licenses := Seq(("MIT", url("https://opensource.org/licenses/MIT"))),
Compile / doc / scalacOptions += "-no-link-warnings",
scalacOptions ++= crossSettings(
Expand All @@ -39,8 +39,12 @@ lazy val commonSettings = Seq(
ProblemFilters.exclude[DirectMissingMethodProblem](
"com.evolutiongaming.skafka.Converters#MapJOps.asScalaMap$extension"
),
ProblemFilters.exclude[DirectMissingMethodProblem]("com.evolutiongaming.skafka.consumer.ConsumerMetrics#ConsumerMetricsOps.mapK$extension"),
ProblemFilters.exclude[DirectMissingMethodProblem]("com.evolutiongaming.skafka.producer.ProducerMetrics#ProducerMetricsOps.mapK$extension"),
ProblemFilters.exclude[DirectMissingMethodProblem](
"com.evolutiongaming.skafka.consumer.ConsumerMetrics#ConsumerMetricsOps.mapK$extension"
),
ProblemFilters.exclude[DirectMissingMethodProblem](
"com.evolutiongaming.skafka.producer.ProducerMetrics#ProducerMetricsOps.mapK$extension"
),
)
)

Expand All @@ -50,10 +54,9 @@ val alias: Seq[sbt.Def.Setting[?]] =
// "check",
// "all versionPolicyCheck Compile/doc scalafmtCheckAll scalafmtSbtCheck; scalafixEnable; scalafixAll --check",
// ) ++
addCommandAlias("check", "all versionPolicyCheck Compile/doc") ++
addCommandAlias("check", "all versionPolicyCheck Compile/doc") ++
addCommandAlias("build", "+all compile test")


lazy val root = (project in file(".")
disablePlugins (MimaPlugin)
settings (name := "skafka")
Expand All @@ -75,9 +78,9 @@ lazy val skafka = (project in file("skafka")
`future-helper`,
`cats-helper`,
Smetrics.smetrics,
scalatest % Test,
Cats.laws % Test,
discipline % Test,
scalatest % Test,
Cats.laws % Test,
discipline % Test,
CatsEffect.effectTestKit % Test,
`scala-java8-compat`,
`collection-compat`
Expand Down
Loading