-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.sbt
88 lines (82 loc) · 3.33 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
import Build.*
releaseCrossBuild := true
sonatypeProfileName := "com.crobox"
lazy val root = (project in file("."))
.settings(
publish := {},
publishArtifact := false,
inThisBuild(
List(
organization := "com.crobox.clickhouse",
scalaVersion := "2.13.13",
crossScalaVersions := List("2.13.13", "3.3.1"),
javacOptions ++= Seq("-g", "-Xlint:unchecked", "-Xlint:deprecation", "-source", "11", "-target", "11"),
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature", "-language:_", "-encoding", "UTF-8"),
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
pomExtra := {
<url>https://github.com/crobox/clickhouse-scala-client</url>
<licenses>
<license>
<name>The GNU Lesser General Public License, Version 3.0</name>
<url>http://www.gnu.org/licenses/lgpl-3.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:crobox/clickhouse-scala-client.git</url>
<connection>scm:[email protected]:crobox/clickhouse-scala-client.git</connection>
</scm>
<developers>
<developer>
<id>crobox</id>
<name>crobox</name>
<url>https://github.com/crobox</url>
</developer>
</developers>
}
)
),
name := "clickhouse"
)
.aggregate(client, dsl, testkit)
lazy val client: Project = (project in file("client"))
.configs(Config.CustomIntegrationTest)
.settings(Config.testSettings: _*)
.settings(
name := "client",
sbtrelease.ReleasePlugin.autoImport.releasePublishArtifactsAction := PgpKeys.publishSigned.value,
libraryDependencies ++= Seq(
"io.spray" %% "spray-json" % "1.3.6",
"org.apache.pekko" %% "pekko-actor" % PekkoVersion,
"org.apache.pekko" %% "pekko-stream" % PekkoVersion,
"org.apache.pekko" %% "pekko-http" % PekkoHttpVersion,
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.5",
"joda-time" % "joda-time" % "2.12.7"
) ++ Seq("org.apache.pekko" %% "pekko-testkit" % PekkoVersion % Test) ++ Build.testDependencies.map(_ % Test)
)
lazy val dsl = (project in file("dsl"))
.dependsOn(client, client % "test->test", testkit % Test)
.configs(Config.CustomIntegrationTest)
.settings(Config.testSettings: _*)
.settings(
name := "dsl",
sbtrelease.ReleasePlugin.autoImport.releasePublishArtifactsAction := PgpKeys.publishSigned.value,
libraryDependencies ++= Seq(
"com.google.guava" % "guava" % "33.1.0-jre",
"com.typesafe" % "config" % "1.4.3"
)
)
// .settings(excludeDependencies ++= Seq(ExclusionRule("org.apache.pekko")))
lazy val testkit = (project in file("testkit"))
.dependsOn(client)
.settings(
name := "testkit",
sbtrelease.ReleasePlugin.autoImport.releasePublishArtifactsAction := PgpKeys.publishSigned.value,
libraryDependencies ++= Build.testDependencies
)