forked from reugn/aerospike-client-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
94 lines (82 loc) · 2.73 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
val ZIOVersion = "1.0.16"
val MonixVersion = "3.4.1"
val AerospikeVersion = "6.1.0"
val AkkaStreamVersion = "2.6.19"
val NettyVersion = "4.1.79.Final"
lazy val commonSettings = Seq(
organization := "io.github.reugn",
scalaVersion := "2.12.16",
crossScalaVersions := Seq(scalaVersion.value, "2.13.8"),
libraryDependencies ++= Seq(
"com.aerospike" % "aerospike-client" % AerospikeVersion,
"com.typesafe.akka" %% "akka-stream" % AkkaStreamVersion,
"io.netty" % "netty-transport" % NettyVersion,
"io.netty" % "netty-transport-native-epoll" % NettyVersion classifier "linux-x86_64",
"io.netty" % "netty-transport-native-kqueue" % NettyVersion classifier "osx-x86_64",
"io.netty" % "netty-handler" % NettyVersion,
"com.typesafe" % "config" % "1.4.2",
"org.scalatest" %% "scalatest" % "3.2.12" % Test
),
scalacOptions := Seq(
"-target:jvm-1.8",
"-unchecked",
"-deprecation",
"-feature",
"-encoding", "utf8",
"-Xlint:-missing-interpolator"
),
Test / parallelExecution := false,
Test / publishArtifact := false,
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html")),
homepage := Some(url("https://github.com/reugn/aerospike-client-scala")),
scmInfo := Some(ScmInfo(url("https://github.com/reugn/aerospike-client-scala"), "[email protected]:reugn/aerospike-client-scala.git")),
developers := List(Developer("reugn", "reugn", "[email protected]", url("https://github.com/reugn"))),
publishMavenStyle := true,
pomIncludeRepository := { _ => false },
publishTo := {
val nexus = "https://s01.oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
)
lazy val noPublishSettings = Seq(
publish := {},
publishLocal := {},
publishArtifact := false,
publish / skip := true
)
lazy val core = (project in file("aerospike-core")).settings(
commonSettings
).settings(
name := "aerospike-core"
)
lazy val zio = (project in file("aerospike-zio")).settings(
commonSettings
).settings(
name := "aerospike-zio"
).settings(libraryDependencies ++= Seq(
"dev.zio" %% "zio" % ZIOVersion,
"dev.zio" %% "zio-streams" % ZIOVersion,
"dev.zio" %% "zio-interop-reactivestreams" % "1.3.12"
)).dependsOn(
core % "test->test;compile->compile"
)
lazy val monix = (project in file("aerospike-monix")).settings(
commonSettings
).settings(
name := "aerospike-monix"
).settings(libraryDependencies ++= Seq(
"io.monix" %% "monix" % MonixVersion
)).dependsOn(
core % "test->test;compile->compile"
)
lazy val root = (project in file(".")).settings(
noPublishSettings,
name := "aerospike-client-scala"
).aggregate(
core,
zio,
monix
)