-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
63 lines (54 loc) · 2 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
import com.typesafe.tools.mima.core._
ThisBuild / tlBaseVersion := "0.5" // your current series x.y
ThisBuild / organization := "tech.ant8e"
ThisBuild / organizationName := "Antoine Comte"
ThisBuild / startYear := Some(2023)
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / developers := List(
// your GitHub handle and name
tlGitHubDev("ant8e", "Antoine Comte")
)
// publish to s01.oss.sonatype.org (set to true to publish to oss.sonatype.org instead)
ThisBuild / tlSonatypeUseLegacyHost := false
ThisBuild / tlFatalWarnings := false
// publish website from this branch
//ThisBuild / tlSitePublishBranch := Some("main")
val Scala213 = "2.13.16"
ThisBuild / crossScalaVersions := Seq(Scala213, "3.3.5")
ThisBuild / scalaVersion := Scala213 // the default Scala
lazy val root = tlCrossRootProject.aggregate(core)
lazy val core = crossProject(JVMPlatform, JSPlatform)
.crossType(CrossType.Full)
.in(file("core"))
.settings(
name := "uuid4cats-effect",
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % "2.13.0",
"org.typelevel" %%% "cats-effect" % "3.5.7",
"org.scalameta" %%% "munit" % "1.1.0" % Test,
"org.typelevel" %%% "munit-cats-effect" % "2.0.0" % Test,
"org.scalameta" %%% "munit-scalacheck" % "1.1.0" % Test
)
)
lazy val docs = project.in(file("site")).enablePlugins(TypelevelSitePlugin)
ThisBuild / githubWorkflowAddedJobs ++= Seq(
WorkflowJob(
id = "coverage",
name = "Generate coverage report",
scalas = List(Scala213),
javas = List(githubWorkflowJavaVersions.value.last),
steps = List(WorkflowStep.Checkout) ++ WorkflowStep.SetupJava(
List(githubWorkflowJavaVersions.value.last)
) ++ githubWorkflowGeneratedCacheSteps.value ++ List(
WorkflowStep.Sbt(List("coverage", "rootJVM/test", "coverageAggregate")),
WorkflowStep.Use(
UseRef.Public(
"codecov",
"codecov-action",
"v3"
),
env = Map("CODECOV_TOKEN" -> "${{ secrets.CODECOV_TOKEN }}")
)
)
)
)