-
Notifications
You must be signed in to change notification settings - Fork 73
/
build.sbt
55 lines (51 loc) · 1.98 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
// This build is for this Giter8 template.
// To test the template run `g8` or `g8Test` from the sbt session.
// See http://www.foundweekends.org/giter8/testing.html#Using+the+Giter8Plugin for more details.
ThisBuild / githubWorkflowBuild := Seq(
WorkflowStep.Sbt(List("g8Test"), name = Some("Test generated template")),
)
val PrimaryOS = "ubuntu-latest"
val MacOS = "macos-latest"
ThisBuild / githubWorkflowOSes := Seq(PrimaryOS, MacOS)
ThisBuild / githubWorkflowJavaVersions := Seq(
JavaSpec.temurin("11"),
JavaSpec.temurin("17"),
)
ThisBuild / githubWorkflowPublishTargetBranches := Seq.empty
val Http4sVersion = "0.23.29"
val CirceVersion = "0.14.10"
val MunitVersion = "1.0.2"
val LogbackVersion = "1.5.12"
val MunitCatsEffectVersion = "2.0.0"
lazy val root = project
.in(file("."))
.settings(
name := "http4s-g8",
libraryDependencies ++= Seq(
"org.http4s" %% "http4s-ember-server" % Http4sVersion,
"org.http4s" %% "http4s-ember-client" % Http4sVersion,
"org.http4s" %% "http4s-circe" % Http4sVersion,
"org.http4s" %% "http4s-dsl" % Http4sVersion,
"io.circe" %% "circe-generic" % CirceVersion,
"org.scalameta" %% "munit" % MunitVersion % Test,
"org.typelevel" %% "munit-cats-effect" % MunitCatsEffectVersion % Test,
"ch.qos.logback" % "logback-classic" % LogbackVersion % Runtime,
),
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.2"),
addSbtPlugin("io.spray" % "sbt-revolver" % "0.10.0"),
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.3.0"),
Test / test := {
val _ = (Test / g8Test).toTask("").value
},
scriptedLaunchOpts ++= List(
"-Xms1024m",
"-Xmx1024m",
"-XX:ReservedCodeCacheSize=128m",
"-Xss2m",
"-Dfile.encoding=UTF-8"
),
resolvers += Resolver.url(
"typesafe",
url("https://repo.typesafe.com/typesafe/ivy-releases/")
)(Resolver.ivyStylePatterns),
)