This repository has been archived by the owner on Jan 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
92 lines (85 loc) · 2.66 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
import sbt.Keys.resolvers
val finagleRev = "21.6.0"
val circeRev = "0.13.0"
lazy val scala212 = "2.12.12"
lazy val scala213 = "2.13.6"
lazy val supportedScalaVersions = List(scala213, scala212)
lazy val commonSettings = inThisBuild(
List(
organization := "com.whisk",
scalaVersion := scala213,
version := "0.7.1",
scalacOptions ++= Seq("-feature", "-deprecation", "-language:implicitConversions"),
// sonatypeProfileName := "com.whisk",
publishMavenStyle := true,
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
homepage := Some(url("https://github.com/whisklabs/mysql-util")),
scmInfo := Some(
ScmInfo(
url("https://github.com/whisklabs/mysql-util"),
"scm:git:github.com/whisklabs/mysql-util.git"
)
),
developers := List(
Developer(
id = "viktortnk",
name = "Viktor Taranenko",
email = "viktortnk@gmail.com",
url = url("https://finelydistributed.io/")
)
),
credentials += Credentials(Path.userHome / ".m2" / ".credentials"),
publishTo := Some(
"internal.repo.write" at "https://nexus.whisk-dev.com/repository/whisk-maven2/"
),
resolvers += "internal.repo.read" at "https://nexus.whisk-dev.com/repository/whisk-maven-group/"
// publishTo := Some(Opts.resolver.sonatypeStaging)
)
)
lazy val root = project
.in(file("."))
.settings(commonSettings)
.settings(
publish := {},
publishLocal := {},
packagedArtifacts := Map.empty,
crossScalaVersions := Nil
)
.aggregate(core, testing, circe)
lazy val core = project
.in(file("mysql-util-core"))
.settings(
name := "mysql-util-core",
commonSettings,
crossScalaVersions := supportedScalaVersions,
libraryDependencies ++= Seq(
"com.twitter" %% "finagle-mysql" % finagleRev
)
)
.dependsOn(testing % Test)
lazy val testing = project
.in(file("mysql-util-testing"))
.settings(
name := "mysql-util-testing",
commonSettings,
crossScalaVersions := supportedScalaVersions,
libraryDependencies ++= Seq(
"com.twitter" %% "finagle-mysql" % finagleRev,
"com.whisk" %% "docker-testkit-scalatest" % "0.10.0-beta8",
"org.jdbi" % "jdbi3-core" % "3.2.0",
"mysql" % "mysql-connector-java" % "8.0.27",
"ch.qos.logback" % "logback-classic" % "1.2.8"
)
)
lazy val circe = project
.in(file("mysql-util-circe"))
.settings(
name := "mysql-util-circe",
commonSettings,
crossScalaVersions := supportedScalaVersions,
libraryDependencies ++= Seq(
"io.circe" %% "circe-core" % circeRev,
"io.circe" %% "circe-parser" % circeRev
)
)
.dependsOn(core % "compile->compile;test->test")