-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.sbt
52 lines (45 loc) · 1.81 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
ThisBuild / tlBaseVersion := "0.0" // your current series x.y
// We don't want to publish
ThisBuild / tlCiReleaseTags := false
ThisBuild / tlCiReleaseBranches := Nil
ThisBuild / tlCiDependencyGraphJob := false
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)
val PrimaryJava = JavaSpec.temurin("8")
val LTSJava = JavaSpec.temurin("21")
ThisBuild / githubWorkflowJavaVersions := Seq(PrimaryJava, LTSJava)
// MacOS runners do not have temurin@8
ThisBuild / githubWorkflowBuildMatrixExclusions := Seq(
MatrixExclude(Map("os" -> MacOS, "java" -> JavaSpec.temurin("8").render))
)
// 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.
lazy val root = (project in file("."))
.aggregate(phantomDependencies)
.settings(
name := "typelevel.g8",
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)
)
lazy val phantomDependencies = project
.settings(
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % "2.12.0",
"org.typelevel" %%% "cats-effect" % "3.5.7",
"org.scalameta" %%% "munit" % "1.0.2" % Test,
"org.typelevel" %%% "munit-cats-effect" % "2.0.0" % Test,
"org.scala-lang" % "scala-library" % "2.13.15",
"org.scala-lang" % "scala3-library_3" % "3.3.4"
),
)