-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathbuild.sbt
50 lines (42 loc) · 1.47 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Global / onChangedBuildSource := ReloadOnSourceChanges
name := "sbt-graphql"
organization := "de.mukis"
sbtPlugin := true
enablePlugins(SbtPlugin)
val circeVersion = "0.13.0"
val catsVersion = "2.1.1"
libraryDependencies ++= Seq(
"org.sangria-graphql" %% "sangria" % "2.0.0-RC1",
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-jackson28" % circeVersion,
"org.typelevel" %% "cats-core" % catsVersion,
"org.typelevel" %% "cats-testkit" % catsVersion % Test,
"org.scalaj" %% "scalaj-http" % "2.4.2",
"org.scalameta" %% "scalameta" % "4.3.9",
"org.scalatest" %% "scalatest" % "3.1.1" % Test,
"org.typelevel" %% "cats-testkit-scalatest" % "1.0.1" % Test
)
// scripted test settings
scriptedLaunchOpts += "-Dproject.version=" + version.value
scalacOptions += "-Ypartial-unification"
// project meta data
sonatypeProfileName := "de.mukis"
licenses := Seq("Apache-2.0" -> url("https://opensource.org/licenses/Apache-2.0"))
homepage := Some(url("https://github.com/muuki88/sbt-graphql"))
scmInfo := Some(
ScmInfo(
url("https://github.com/muuki88/sbt-graphql"),
"scm:[email protected]:muuki88/sbt-graphql.git"
)
)
developers := List(
Developer(
id = "muuki88",
name = "Nepomuk Seiler",
email = "[email protected]",
url = url("https://www.muki.rocks")
)
)
// ci commands
addCommandAlias("validateFormatting", "; scalafmtCheckAll ; scalafmtSbtCheck ")
addCommandAlias("validate", "; clean ; update ; validateFormatting ; test ; scripted")