-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
90 lines (77 loc) · 3.11 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// https://typelevel.org/sbt-typelevel/faq.html#what-is-a-base-version-anyway
ThisBuild / tlBaseVersion := "0.1" // your current series x.y
ThisBuild / organization := "io.dantb"
ThisBuild / organizationName := "Daniel Tattan-Birch"
ThisBuild / startYear := Some(2023)
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / developers := List(
// your GitHub handle and name
tlGitHubDev("dantb", "Daniel Tattan-Birch")
)
// publish to s01.oss.sonatype.org (set to true to publish to oss.sonatype.org instead)
ThisBuild / tlSonatypeUseLegacyHost := false
// publish website from this branch
ThisBuild / tlSitePublishBranch := Some("main")
// val Scala213 = "2.13.10"
val Scala3 = "3.3.0"
ThisBuild / scalaVersion := Scala3 // the default Scala
val Cats = "2.9.0"
val CatsEffect = "3.4.10"
val Circe = "0.14.3"
val Ciris = "3.2.0"
val Grackle = "0.13.0"
val Http4s = "0.23.13"
val Jawn = "1.3.2"
val Literally = "1.1.0"
val Log4Cats = "2.6.0"
val MUnit = "0.7.29"
val MUnitCE = "1.0.7"
val NewTypes = "0.2.3"
lazy val root = (project in file(".")).aggregate(core, graphql)
lazy val core = project
.in(file("core"))
.settings(
name := "contentless-core",
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % Cats,
"io.circe" %% "circe-core" % Circe,
"io.monix" %% "newtypes-core" % NewTypes,
"org.typelevel" %%% "twiddles-core" % "0.6.0",
"io.circe" %% "circe-literal" % Circe % Test,
"org.typelevel" %% "jawn-parser" % Jawn % Test,
"org.scalameta" %% "munit" % MUnit % Test,
"org.scalameta" %% "munit-scalacheck" % MUnit % Test
)
)
lazy val graphql = project
.in(file("graphql"))
.settings(
name := "contentless-graphql",
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-effect" % CatsEffect,
"edu.gemini" %% "gsp-graphql-core" % Grackle,
"org.typelevel" %% "literally" % Literally,
"org.http4s" %% "http4s-client" % Http4s,
"org.http4s" %% "http4s-ember-client" % Http4s,
"org.http4s" %% "http4s-circe" % Http4s,
"is.cir" %% "ciris" % Ciris % Test,
"org.typelevel" %% "log4cats-noop" % Log4Cats % Test,
"org.typelevel" %% "munit-cats-effect-3" % MUnitCE % Test,
"org.scalameta" %% "munit" % MUnit % Test,
"org.scalameta" %% "munit-scalacheck" % MUnit % Test
)
)
.dependsOn(core)
lazy val docs = project.in(file("site")).enablePlugins(TypelevelSitePlugin).dependsOn(core, graphql)
Global / onChangedBuildSource := ReloadOnSourceChanges
inThisBuild(
List(
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision
)
)
ThisBuild / scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.6.0"
addCommandAlias("organiseImports", "+scalafixAll")
addCommandAlias("organiseImportsCheck", "+scalafixAll --check")
addCommandAlias("format", "+scalafmtAll; organiseImports")
addCommandAlias("formatCheck", "+scalafmtCheckAll; organiseImportsCheck")