Skip to content

Commit

Permalink
do not check mima for scala 3 as no scala 3 artifacts are present yet
Browse files Browse the repository at this point in the history
  • Loading branch information
yanns committed Oct 6, 2022
1 parent 4a050eb commit 2e1a360
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@ import com.typesafe.tools.mima.core.{DirectMissingMethodProblem, ProblemFilters}
name := "sangria-slowlog"
organization := "org.sangria-graphql"

mimaPreviousArtifacts := Set("org.sangria-graphql" %% "sangria-slowlog" % "2.0.2")
val isScala3 = Def.setting(
CrossVersion.partialVersion(scalaVersion.value).exists(_._1 == 3)
)

mimaPreviousArtifacts := {
if (isScala3.value) Set.empty else Set("org.sangria-graphql" %% "sangria-slowlog" % "2.0.2")
}

description := "Sangria middleware to log slow GraphQL queries"
homepage := Some(url("https://sangria-graphql.github.io/"))
licenses := Seq(
"Apache License, ASL Version 2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0"))

val isScala3 = Def.setting(
CrossVersion.partialVersion(scalaVersion.value).exists(_._1 == 3)
)

// sbt-github-actions needs configuration in `ThisBuild`
ThisBuild / crossScalaVersions := Seq("2.12.17", "2.13.8", "3.2.0")
ThisBuild / scalaVersion := crossScalaVersions.value.last
Expand Down

0 comments on commit 2e1a360

Please sign in to comment.