forked from MAIF/thoth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
189 lines (167 loc) · 4.63 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
import ReleaseTransformations._
name := "thoth"
organization := "fr.maif"
resolvers ++= Seq(Resolver.jcenterRepo)
scalaVersion := "2.12.13"
crossScalaVersions := List("2.13.5", "2.12.13")
usePgpKeyHex("5B6BE1966878E3AE16B85BC975B8BA741462DEA9")
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
sonatypeCredentialHost := "s01.oss.sonatype.org"
lazy val root = (project in file("."))
.aggregate(
`commons-events`,
`thoth-kafka-goodies`,
`thoth-core`,
`thoth-jooq`,
`thoth-jooq-async`,
`demo-postgres-kafka`,
`demo-in-memory`,
`sample`,
`thoth-documentation`,
`thoth-tck`
)
.enablePlugins(GitVersioning, GitBranchPrompt)
.settings(
skip in publish := true
)
lazy val `demo-postgres-kafka` = (project in file("./demo/demo-postgres-kafka"))
.dependsOn(`thoth-jooq`)
.settings(
skip in publish := true
)
lazy val `sample` = project
.dependsOn(`thoth-jooq`)
.settings(
skip in publish := true
)
lazy val `demo-in-memory` = (project in file("./demo/demo-in-memory"))
.dependsOn(`thoth-core`)
.settings(
skip in publish := true
)
lazy val `thoth-documentation` = project
.settings(
skip in publish := true
)
lazy val `thoth-tck` = project
.dependsOn(`thoth-core`)
.enablePlugins(TestNGPlugin)
.settings(
skip in publish := true
)
lazy val `demo-postgres-kafka-reactive` =
(project in file("./demo/demo-postgres-kafka-reactive"))
.dependsOn(`thoth-core`, `thoth-jooq-async`)
.settings(
skip in publish := true
)
lazy val `commons-events` = project
.settings(
sonatypeRepository := "https://s01.oss.sonatype.org/service/local",
sonatypeCredentialHost := "s01.oss.sonatype.org",
scalaVersion := "2.12.13",
crossPaths := false
)
lazy val `thoth-kafka-goodies` = project
.settings(
sonatypeRepository := "https://s01.oss.sonatype.org/service/local",
sonatypeCredentialHost := "s01.oss.sonatype.org",
scalaVersion := "2.12.13",
crossScalaVersions := List("2.13.5", "2.12.13"),
crossPaths := true
)
lazy val `thoth-jooq-async` = project
.dependsOn(`thoth-core`)
.settings(
sonatypeRepository := "https://s01.oss.sonatype.org/service/local",
sonatypeCredentialHost := "s01.oss.sonatype.org",
scalaVersion := "2.12.13",
crossScalaVersions := List("2.13.5", "2.12.13"),
crossPaths := true
)
lazy val `thoth-core` = project
.dependsOn(`commons-events`, `thoth-kafka-goodies`)
.settings(
sonatypeRepository := "https://s01.oss.sonatype.org/service/local",
sonatypeCredentialHost := "s01.oss.sonatype.org",
scalaVersion := "2.12.13",
crossScalaVersions := List("2.13.5", "2.12.13"),
crossPaths := true
)
lazy val `thoth-jooq` = project
.dependsOn(`thoth-core`, `thoth-tck`)
.enablePlugins(TestNGPlugin)
.settings(
sonatypeRepository := "https://s01.oss.sonatype.org/service/local",
sonatypeCredentialHost := "s01.oss.sonatype.org",
scalaVersion := "2.12.13",
crossScalaVersions := List("2.13.5", "2.12.13"),
crossPaths := true
)
javacOptions in Compile ++= Seq(
"-source",
"15",
"-target",
"8",
"-Xlint:unchecked",
"-Xlint:deprecation"
)
testFrameworks := Seq(TestFrameworks.JUnit)
testOptions += Tests.Argument(TestFrameworks.JUnit, "-v")
(parallelExecution in Test) := false
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
setNextVersion,
commitNextVersion,
pushChanges
)
lazy val githubRepo = "maif/thoth"
inThisBuild(
List(
homepage := Some(url(s"https://github.com/$githubRepo")),
startYear := Some(2018),
scmInfo := Some(
ScmInfo(
url(s"https://github.com/$githubRepo"),
s"scm:git:https://github.com/$githubRepo.git",
Some(s"scm:git:[email protected]:$githubRepo.git")
)
),
licenses := Seq(
("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
),
developers := List(
Developer(
"alexandre.delegue",
"Alexandre Delègue",
"",
url(s"https://github.com/larousso")
),
Developer(
"benjamin.cavy",
"Benjamin Cavy",
"",
url(s"https://github.com/ptitFicus")
),
Developer(
"gregory.bevan",
"Grégory Bévan",
"",
url(s"https://github.com/GregoryBevan")
),
Developer(
"georges.ginon",
"Georges Ginon",
"",
url(s"https://github.com/ftoumHub")
)
),
releaseCrossBuild := true,
publishArtifact in Test := false
)
)