-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
165 lines (151 loc) · 5 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
// General info
val username = "RustedBones"
val repo = "pekko-http-metrics"
val githubUrl = s"https://github.com/$username/$repo"
ThisBuild / tlBaseVersion := "1.0"
ThisBuild / organization := "fr.davit"
ThisBuild / organizationName := "Michel Davit"
ThisBuild / startYear := Some(2019)
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / homepage := Some(url(githubUrl))
ThisBuild / scmInfo := Some(ScmInfo(url(githubUrl), s"[email protected]:$username/$repo.git"))
ThisBuild / developers := List(
Developer(
id = s"$username",
name = "Michel Davit",
email = "[email protected]",
url = url(s"https://github.com/$username")
)
)
// scala versions
val scala3 = "3.3.3"
val scala213 = "2.13.13"
val scala212 = "2.12.19"
val defaultScala = scala3
// github actions
val java17 = JavaSpec.temurin("17")
val java11 = JavaSpec.temurin("11")
val defaultJava = java17
ThisBuild / scalaVersion := defaultScala
ThisBuild / crossScalaVersions := Seq(scala3, scala213, scala212)
ThisBuild / githubWorkflowTargetBranches := Seq("main")
ThisBuild / githubWorkflowJavaVersions := Seq(java17, java11)
// build
ThisBuild / tlFatalWarnings := true
ThisBuild / tlJdkRelease := Some(8)
ThisBuild / tlSonatypeUseLegacyHost := true
// mima
ThisBuild / mimaBinaryIssueFilters ++= Seq()
lazy val `pekko-http-metrics` = (project in file("."))
.aggregate(
integration,
`pekko-http-metrics-core`,
`pekko-http-metrics-datadog`,
`pekko-http-metrics-graphite`,
`pekko-http-metrics-dropwizard`,
`pekko-http-metrics-dropwizard-v5`,
`pekko-http-metrics-prometheus`
)
.settings(
publishArtifact := false
)
lazy val `pekko-http-metrics-core` = (project in file("core"))
.settings(
libraryDependencies ++= Seq(
Dependencies.Enumeratum,
Dependencies.PekkoHttp,
Dependencies.Provided.PekkoStream,
Dependencies.Test.Logback,
Dependencies.Test.PekkoHttpTestkit,
Dependencies.Test.PekkoSlf4j,
Dependencies.Test.PekkoStreamTestkit,
Dependencies.Test.ScalaMock,
Dependencies.Test.ScalaTest
)
)
lazy val `pekko-http-metrics-datadog` = (project in file("datadog"))
.dependsOn(`pekko-http-metrics-core`)
.settings(
libraryDependencies ++= Seq(
Dependencies.Datadog,
Dependencies.Provided.PekkoStream
)
)
lazy val `pekko-http-metrics-dropwizard` = (project in file("dropwizard"))
.dependsOn(`pekko-http-metrics-core`)
.settings(
libraryDependencies ++= Seq(
Dependencies.DropwizardCore,
Dependencies.DropwizardJson,
Dependencies.ScalaLogging,
Dependencies.Provided.PekkoStream,
Dependencies.Test.Logback,
Dependencies.Test.PekkoHttpJson,
Dependencies.Test.PekkoHttpTestkit,
Dependencies.Test.PekkoSlf4j,
Dependencies.Test.PekkoStreamTestkit,
Dependencies.Test.PekkoTestkit,
Dependencies.Test.ScalaCollectionCompat,
Dependencies.Test.ScalaTest
)
)
lazy val `pekko-http-metrics-dropwizard-v5` = (project in file("dropwizard-v5"))
.dependsOn(`pekko-http-metrics-core`)
.settings(
libraryDependencies ++= Seq(
Dependencies.DropwizardV5Core,
Dependencies.DropwizardV5Json,
Dependencies.Provided.PekkoStream,
Dependencies.Test.Logback,
Dependencies.Test.PekkoHttpJson,
Dependencies.Test.PekkoHttpTestkit,
Dependencies.Test.PekkoSlf4j,
Dependencies.Test.PekkoStreamTestkit,
Dependencies.Test.PekkoTestkit,
Dependencies.Test.ScalaCollectionCompat,
Dependencies.Test.ScalaTest
)
)
lazy val `pekko-http-metrics-graphite` = (project in file("graphite"))
.dependsOn(`pekko-http-metrics-core`)
.settings(
libraryDependencies ++= Seq(
Dependencies.Provided.PekkoStream
)
)
lazy val `pekko-http-metrics-prometheus` = (project in file("prometheus"))
.dependsOn(`pekko-http-metrics-core`)
.settings(
libraryDependencies ++= Seq(
Dependencies.PrometheusCommon,
Dependencies.Provided.PekkoStream,
Dependencies.Test.Logback,
Dependencies.Test.PekkoHttpTestkit,
Dependencies.Test.PekkoSlf4j,
Dependencies.Test.PekkoStreamTestkit,
Dependencies.Test.PekkoTestkit,
Dependencies.Test.ScalaTest
)
)
lazy val integration = (project in file("integration"))
.dependsOn(
`pekko-http-metrics-core` % "test->test",
`pekko-http-metrics-datadog` % "test",
`pekko-http-metrics-graphite` % "test",
`pekko-http-metrics-dropwizard-v5` % "test",
`pekko-http-metrics-prometheus` % "test"
)
.settings(
publishArtifact := false,
libraryDependencies ++= Seq(
Dependencies.Test.DropwizardV5Jvm,
Dependencies.Test.Logback,
Dependencies.Test.PekkoHttpJson,
Dependencies.Test.PekkoHttpTestkit,
Dependencies.Test.PekkoSlf4j,
Dependencies.Test.PekkoStreamTestkit,
Dependencies.Test.PekkoTestkit,
Dependencies.Test.PrometheusHotspot,
Dependencies.Test.ScalaTest
)
)