-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
62 lines (58 loc) · 2.39 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
ThisBuild / tlBaseVersion := "0.2"
ThisBuild / organization := "org.typelevel"
ThisBuild / organizationName := "Typelevel"
ThisBuild / startYear := Some(2023)
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / developers := List(
tlGitHubDev("bpholt", "Brian Holt"),
)
ThisBuild / tlSonatypeUseLegacyHost := false
ThisBuild / tlCiReleaseBranches := Seq("main")
val Scala213 = "2.13.15"
val Scala212 = "2.12.20"
val Scala3 = "3.3.4"
ThisBuild / crossScalaVersions := Seq(Scala213, Scala212, Scala3)
ThisBuild / scalaVersion := Scala213 // the default Scala
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17"))
ThisBuild / githubWorkflowScalaVersions := Seq("2.13", "2.12", "3")
ThisBuild / tlJdkRelease := Some(8)
ThisBuild / mergifyStewardConfig ~= {
_.map {
_.withMergeMinors(true)
.withAuthor("typelevel-steward[bot]")
.withAction(MergifyAction.Merge(method = Option("squash")))
}
}
ThisBuild / mergifySuccessConditions += MergifyCondition.Custom("#approved-reviews-by>=1")
ThisBuild / mergifyPrRules += MergifyPrRule(
"assign scala-steward's PRs for review",
List(MergifyCondition.Custom("author=typelevel-steward[bot]")),
List(
MergifyAction.RequestReviews.fromUsers("bpholt"),
)
)
lazy val root = tlCrossRootProject.aggregate(`log4cats-natchez-backend`)
lazy val `log4cats-natchez-backend` = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.crossType(CrossType.Full)
.in(file("core"))
.settings(
name := "log4cats-natchez",
libraryDependencies ++= Seq(
"org.typelevel" %%% "log4cats-core" % "2.7.0",
"org.tpolecat" %%% "natchez-core" % "0.3.7",
),
)
.jvmSettings(
libraryDependencies ++= Seq(
"org.tpolecat" %%% "natchez-opentelemetry" % "0.3.7" % Test,
"io.opentelemetry" % "opentelemetry-api" % "1.43.0" % Test,
"io.opentelemetry" % "opentelemetry-context" % "1.43.0" % Test,
"io.opentelemetry" % "opentelemetry-exporter-otlp" % "1.43.0" % Test,
"io.opentelemetry" % "opentelemetry-exporter-logging" % "1.43.0" % Test,
"io.opentelemetry" % "opentelemetry-extension-trace-propagators" % "1.43.0" % Test,
"io.opentelemetry" % "opentelemetry-sdk" % "1.43.0" % Test,
"io.opentelemetry" % "opentelemetry-sdk-common" % "1.43.0" % Test,
"io.opentelemetry" % "opentelemetry-sdk-trace" % "1.43.0" % Test,
"io.opentelemetry" % "opentelemetry-semconv" % "1.27.0-alpha" % Test,
)
)