Skip to content

Commit

Permalink
Merge pull request #27 from sangria-graphql/use_sangria_2.0.1
Browse files Browse the repository at this point in the history
use sangria 2.0.1
  • Loading branch information
yanns authored Dec 15, 2020
2 parents 5574e11 + b4d0b50 commit b837c52
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,11 @@ libraryDependencies ++= Seq(

// testing
"org.scalatest" %% "scalatest" % "3.1.4" % Test,
"org.sangria-graphql" %% "sangria" % "1.4.2" % Test
"org.sangria-graphql" %% "sangria" % "2.0.1" % Test
)

testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-oF")

// Sangria 1.0.0 (required for AST in test) has never been published for 2.13
libraryDependencies --= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 13)) =>
Seq("org.sangria-graphql" %% "sangria" % "1.4.2" % Test)
case _ => Seq.empty
}
}

excludeFilter in (Test, unmanagedSources) := {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 13)) => HiddenFileFilter || "GraphQLVisitorSpec.scala"
case _ => NothingFilter
}
}

// Publishing
releaseCrossBuild := true
releasePublishArtifactsAction := PgpKeys.publishSigned.value
Expand Down

0 comments on commit b837c52

Please sign in to comment.